pure-stateless - Simple and Fast React Components
Based on christophehurpeau/react-pure-stateless-component. Thanks :)
Installation
npm install pure-stateless --save
About
This is a minimalistic library for creating react pure stateless components, with a creator function that runs only once.
For more advanced features use recompose.
const PureStateLessComponent =
when the full arguments are:
const PureStateLessComponent =
Then a component is created and can be used as a regular react component:
// ... { return <div> array </div> }
Motivation
If you need a minimalistic library that provides you with pure stateless components with handlers.
Recompose includes the same features and many more but can be too heavy if an optimization can't be used on it.
Testing
cd tests\simple-test
or
cd tests\performance-test
or
cd tests\performance-test-recompose
yarn install
yarn start