JSPM

@fluentui/react-utilities

9.0.0-alpha.4
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 192100
  • Score
    100M100P100Q168670F
  • License MIT

A set of general React-specific utilities.

Package Exports

  • @fluentui/react-utilities

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fluentui/react-utilities) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@fluentui/react-utilities

React Utilities for Fluent UI React components

API

childrenExist(children)

Tests if children are nil in React and Preact. React children can be one many types. See the tests for all the covered cases.

Example:

if (childrenExist(props.children)) {
  // render children.
}