Skip to content

JulienR1/eslint-react-no-object-type-as-default-prop-repro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react/no-object-type-as-default-prop reproduction

Reported issue: jsx-eslint/eslint-plugin-react#3767.

See App.jsx for the test setup.

Run npm run lint to get the output.

Eslint output:

12:25  error  foo has a/an object literal as default prop. This could lead to potential infinite render loop in React. Use a variable reference instead of object literal  react/no-object-type-as-default-prop

✖ 1 problem (1 error, 0 warnings)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published