react-hook-component
With the React hooks the React.Component
will be deprecated soon ⚰️.
Not only this new hook all-functional API is disgusting 🤢, it also forces us to rewrite our apps, which takes greater than zero hours 💰. This project allows you to write your react components in the old-fasioned way, as you love ❤️ and are used to do. No need to learn new react, which will be deprecated in a year anyway.
Example
;; // Our component definition looks like in the good old days 🤩const Counter = ;
Tests
See test.js
TODO
- [] - implement getDefaultProps
- [] - implement forceUpdate
- [] - tests for state, props
- [] - test shouldComponentUpdate when enzyme ready
Feel free to open PR if you want to help!