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.