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 deprecating componentWillReceiveProps).
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:
While migrating to React v16, we can:
- Drop
observe HoC
- Drop
data prop in Region component
- Drop
RegionService
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.
Currently
Our API of
frint-reactis 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:
appinstance synchronously #424: Access toappinstance synchronouslyMountAppcomponentRegionprops to children components #436: Pass Region's props to Child Apps' root Components directlyWhile migrating to React v16, we can:
observeHoCdataprop inRegioncomponentRegionServiceBecause parent props as a stream would be difficult to access, since
componentWillReceivePropsis already deprecated and will be gone in React v17.It will have to be a breaking change.