You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component. #2
This repo is an amazing example.
But I found an issue.
I tried to copy the code (here is my repo https://github.com/jaballogian/learn-react-hypertrack).
Then I ran the code on my local computer and got an error (as in the screenshot).
Then I tried to change to use the functional react component (and hooks) and still got the same error.
Activity
jaballogian commentedon Oct 26, 2020
FOUND THE SOURCE OF THE ERROR
I tried to comment on the LiveView component (as seen in the image below, here is the link to the file https://github.com/jaballogian/learn-react-hypertrack/blob/master/src/App.js).

Then all of the errors were gone (as seen in the image below).

So I thought that the source of the error was from the LiveView component.
But it still didn't solve the problem.