Skip to content

Eslint plugin to prevent accidentally writing to variables defined outside of a React.createClass from within that React.createClass

Notifications You must be signed in to change notification settings

betaorbust/eslint-plugin-no-react-scope-bound-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Disallow assignment of scope-bound variables from within React classes (no-react-scope-bound-assignment)

NPM Version Build Status Dependency Status Dev Dependency Status

Variables declared outside of a React.createClass call are scope bound inside that call. If the variable is assigned or reassigned from within the React class, this value is shared across all instances of the class, but more importantly, when isomporphically rendering in Node, the variable will be shared across all renders, as Node will require the file only once.

For more information on the rule itself, see the rule doc.

About

Eslint plugin to prevent accidentally writing to variables defined outside of a React.createClass from within that React.createClass

Resources

Stars

Watchers

Forks

Packages

No packages published