0.1.0 • Published 6 years ago
@reacting/purist v0.1.0
purist
Utilizes FormidableLabs react-fast-compare
to provide a custom PureComponent wrapper that is magnitudes faster than React.PureComponent.
import { Purist } from '@reacting/purist'
<Purist>
{() => (
<h1>I will pretty much never re-render...</h1>
)}
</Purist>
import { purist } from '@reacting/purist'
@purist
class Compy extends React.Component {
render() {
return <h1>I am supa fast at prop diffing and pure as fuckkk.</h1>
}
}
import { purist } from '@reacting/purist'
const Compy = purist((props) => {
return <h1>I am supa fast at prop diffing and pure as fuckkk.</h1>
})