Relative Content

Tag Archive for javascriptreactjsreact-hooksfrontend

why useState doesn’t work and how to fix it?

useState doesn’t work. Although I did the same in another component and everything was fine.
Line 7:31: React Hook “useState” is called in function “categories” that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word “use”