Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-react-object-prop-persist

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-react-object-prop-persist

Prevents component re-rendering caused by object literals passed as props.

  • 1.2.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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-persist

Using npm :

npm install --save-dev react-object-prop-persist

Usage -

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
  • yarn or npm install
  • cd example && yarn && cd .. or cd example && npm install && cd ..
  • yarn dev:web or npm run dev:web to run the example app make your changes in index.js.

FAQs

Package last updated on 02 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc