How to use context appropriately? #737
Unanswered
Hermestech
asked this question in
Q&A
Replies: 2 comments
-
|
What version of Fresh are you using ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If you were using Fresh v1.0.x, it's likely that the error is because of the use of React fragments (<>...</>). I remember seeing that error message while building a website using those versions of Fresh, so I think you might be facing the same issue. The solution is to update Fresh to v1.1.x where fragments now work! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to implement context as in React, but when I pass it through the app, I get this error:
An error occured during route handling or page rendering. ReferenceError: React is not defined
My code looks like this:
_app.tsx file looks like:
which could be the right way to solve this?
Beta Was this translation helpful? Give feedback.
All reactions