Skip to content
Advertisement

Error with styled component import and eslint

i got an error using styled component and eslint,

i want to use styled component in a separete files and i got an error

JavaScript

this is the whole component

JavaScript

Advertisement

Answer

React component names must start with a capital letter.

It isn’t used because you haven’t used it as a valid component.

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement