-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maintenance: Upgrade to React v16 #435
Comments
Sounds cool :) I'm working on this now... Please let me know if anyone else is interested. I'm trying to make frintjs work with atomico which uses reactive custom elements (aka web components) and seems a more modern and natural fit for frintjs. Would much appreciate some advice for how to make a frint adapter for custom elements |
Hey @kristianmandrup, Thanks for the interest! I don't work at the same company any more, therefore not actively maintaining this project. Feature-wise, the project is complete. And nothing more is intended to be added. Except for maintenance, upgrades, etc. If it is reactive components that you are after, agnostic of any specific components library, you can check out another project of mine here: https://proppyjs.com/ |
Hi @fahad19 , thanks for replying so quickly. I thought as much, that the project is "done and dusted" for now. Could be good to at least update the deps to React 16.x and perhaps convert it to TS. I'll check out proppyjs as suggested. Have you looked at MeiosisJS by any chance? I saw that you mentioned there was no need for Do you have any suggestion for how a "modern" wrapper interface might look like?
How could FrintJS best support both variants? make these optional? Cheers |
@kristianmandrup: I explored some radically different ideas before here: #415 may help.
PRs welcome :) I am sure I can bring in folks like @rbardini to help out with the release.
I always saw the entire project very decoupled. If you look at the core If someone wants to take a different direction with the same core principles supporting new rendering libraries (or even existing ones with different APIs), you are completely free to do so. Just create new |
Currently
Our API of
frint-react
is based on the context API of React v15.React v16 still supports the old (v15) context API in deprecated mode, but also makes room for additional improvements.
It has also introduced APIs like
getDerivedStateFromProps
, making way for better async rendering (while also deprecatingcomponentWillReceiveProps
).Proposal
We already have some additional proposals which make the API of FrintJS more simpler and stays close to the Component lifecycle where possible. Making it even easier to migrate to React v16:
app
instance synchronously #424: Access toapp
instance synchronouslyMountApp
componentRegion
props to children components #436: Pass Region's props to Child Apps' root Components directlyWhile migrating to React v16, we can:
observe
HoCdata
prop inRegion
componentRegionService
Because parent props as a stream would be difficult to access, since
componentWillReceiveProps
is already deprecated and will be gone in React v17.It will have to be a breaking change.
The text was updated successfully, but these errors were encountered: