Package Exports
- libreact
- libreact/lib/SizeSensor
- libreact/lib/WindowScrollSensor
- libreact/lib/util
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 (libreact) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
libreact
React standard library, must-have toolbox for any React project.
- Collection of React sensors, FaCCs, HOCs, context providers, dummies, and other goodies.
- Isomorphic - all components work in browser and Node.js (and some in
react-native
). - See demos and docs.
Installation
npm install libreact --save
Usage
Import each utility individually to decrease your bundle size
import {mock} from 'libreact/lib/mock';
const MyComponent = mock();
Contents
- Dummies
- Sensors
- Generators
<Audio>
<LocalStorage>
<Redirect>
<Speak>
<Vibrate>
<Video>
- Context
<Provider>
,<Consumer>
, andwithContext()
<Theme>
,<Themed>
, andwithTheme()
<CssVars>
<Router>
,<Route>
,go()
, andwithRoute()
- CSS resets
- Other
License
Unlicense - public domain.