Package Exports
- react-prop-toggle
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 (react-prop-toggle) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
React Prop Toggle
A safe, declarative way to influence the styles and attributes of nodes outside your app's tree.
By storing the initial values of the target node when mounting
react-prop-toggle
is able to safely return styles and attributes when
unmounted.
<PropToggle
isActive={this.state.someCondition}
attributes={{ 'data-variant': 'true' }}
styles={{ background: 'red' }}
/>