xhp-js icon indicating copy to clipboard operation
xhp-js copied to clipboard

Figure out how to `constructReactInstance` in React 17

Open lexidor opened this issue 4 years ago • 2 comments

Older versions of React had a different way of creating components. I am almost certain that this doesn't work in React 17. Some research by someone who knows Reacts internals is required to bring this functionality into the modern era.

One of the things that might make things more difficult (or more easy, depending on how you look at it), is how React 17 handles event handlers.

React 17 release notes

Also a bit unrelated, but a bit less fun is that JSX can compile down to two "syntaxes". New JS Transform

lexidor avatar Nov 15 '20 16:11 lexidor

Frustratingly, I never had the opportunity to get to this, but I came across this article deconstructing how React works and felt it might be handy in future if I or others can do so!

connorgurney avatar Apr 28 '22 21:04 connorgurney

I'm doing some long term project planning right now, and will try to get to this in W3 of February 2023.

connorgurney avatar Nov 15 '22 20:11 connorgurney