@hsds/utils-react

9.0.2-beta.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.

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @hsds/utils-react

    Weekly Downloads

    174

    Version

    9.0.2-beta.2

    License

    none

    Unpacked Size

    39.9 kB

    Total Files

    8

    Last publish

    Collaborators

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