1.0.0 • Published 3 years ago
react-object-prop-persist v1.0.0
Babel Plugin react-object-prop-persist
Prevents component re-rendering caused by object literals passed as props.
Installation -
Using yarn :
yarn add -D react-object-prop-persistUsing npm :
npm install --save-dev react-object-prop-persistUsage -
Simply add this plugin in your App's babel.config.js :
module.exports = function (api) {
api.cache(true);
return {
presets: [...YOUR_APP_PRESETS],
plugins: ["react-object-prop-persist", ...YOUR_OTHER_PLUGINS],
};
};To setup the Development environment -
- clone this Repo
yarnornpm installcd example && yarn && cd ..orcd example && npm install && cd ..yarn dev:webornpm run dev:webto run the example app make your changes inindex.js.
1.0.0
3 years ago