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

@arthurgeron/eslint-plugin-react-usememo

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arthurgeron/eslint-plugin-react-usememo - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "@arthurgeron/eslint-plugin-react-usememo",
"version": "1.0.0",
"version": "1.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -200,9 +200,8 @@ # eslint-plugin-react-usememo

```JavaScript
const otherData = {}; // Or declare inside hook with useMemo
function getData() { // Or declare inside hook with useCallback
// Doing something
}
const otherData = {}; // Or declare inside hook with useMemo
function useData() {
return useMemo(() => ({ getData, otherData}), []); // The return object itself can be used in dependency arrays
const getData = useCallback(() => { // Or declare statically
}, []);
return {getData, otherData};
}

@@ -209,0 +208,0 @@ ```

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