@hsds/utils-react
v9.0.2
Published
This library is part of Help Scout's [@hsds](https://github.com/helpscout/hsds).
Downloads
268
Keywords
Readme
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 packagehoist-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.