-
Describe the bug To Reproduce |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 9 replies
-
I tried
and got hooks.module.js?module:1 Uncaught TypeError: Cannot read properties of null (reading '__H') |
Beta Was this translation helpful? Give feedback.
-
Ok it seems this issue is coming from 2020 year and not properly fixed in two years. Seems like this library is abandoned |
Beta Was this translation helpful? Give feedback.
-
We have a pinned issue describing the problem and how one might go about solving it: #2564 (comment) TLDR? It's a difficult set of issues with Unpkg that aren't really fixable without changing the core of how Unpkg works.
Odd, I cannot reproduce that. Here's my attempt to. I copied what you provided exactly, perhaps you had an issue with a cached version of your code? Not sure. However, the easiest way to combine |
Beta Was this translation helpful? Give feedback.
-
My example was simplified just to show imorts. Right now I can see that hooks are using global shared state, and I was using separate render() calls, my intuition says that if you use multiple render() calls you end up in a mess |
Beta Was this translation helpful? Give feedback.
-
I will try will standalone version |
Beta Was this translation helpful? Give feedback.
-
Ok. Here is code sandbox example. Tell me what I am doing wrong? https://codesandbox.io/s/friendly-fire-ssbdeg?file=/index.html If you open browser console you will see
If you remove useState from TestApp component it will work. |
Beta Was this translation helpful? Give feedback.
Ok. Here is code sandbox example. Tell me what I am doing wrong?
https://codesandbox.io/s/friendly-fire-ssbdeg?file=/index.html
If you open browser console you will see
Cannot read properties of null (reading '__H')
If you remove useState from TestApp component it will work.