@hsds/utils-react

9.0.2 • Public • Published

react

This library is part of Help Scout's @hsds.

Includes:

  • ATTRIBUTE_REGEX
  • ATTRIBUTE_NAME_START_CHAR
  • ATTRIBUTE_NAME_CHAR
  • isCustomAttribute
  • OTHER_ATTRIBUTE_REGEX
  • isPropValid
  • getValidProps
  • getComponentName
  • getComponentKey
  • isReact15
  • isReact16
  • isReact15Up
  • isReactComponent
  • getShallowDiffs
  • getDocumentFromComponent
  • wrapComponentName
  • isComponentOneOfType
  • isNativeSpanType
  • hoistNonReactStatics: just a copy of the package hoist-non-react-statics which hasn't been updated in years and has old react dependencies

Running unit tests

Run nx test react to execute the unit tests via Jest.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 9.0.2
    0
    • latest

Version History

Package Sidebar

Install

npm i @hsds/utils-react

Weekly Downloads

878

Version

9.0.2

License

none

Unpacked Size

40.1 kB

Total Files

8

Last publish

Collaborators

  • kdipaolo
  • luketlancaster
  • charca
  • justin-helpscout
  • jjanczyk
  • tinkertrain
  • helpscout