I am trying to implement your template into a project of mine. The Problem is that as soon a i try to add hooks from react like useState it doesnt work anymore. The problem only occurs when i try to build my vite project and serve it. When i run it in dev mode it works.
I just created a new vite react project with npm create vite@latest and changed the react and react-dom versions to the same as the library. Maybe you can help me or even extend your article to create a template for the project to use it with react hooks
Hey,
I am trying to implement your template into a project of mine. The Problem is that as soon a i try to add hooks from react like useState it doesnt work anymore. The problem only occurs when i try to build my vite project and serve it. When i run it in dev mode it works.
I just created a new vite react project with
npm create vite@latest
and changed the react and react-dom versions to the same as the library. Maybe you can help me or even extend your article to create a template for the project to use it with react hooks