-
Notifications
You must be signed in to change notification settings - Fork 39
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
React-16: Supported Version #75
Comments
It would be a step forward if |
I do plan on supporting react 16. I need to spend some time thinking about the memoize idea but I like the idea. |
The proposal enables releasing an interim version of kioo that uses React 15 yet allows developers to override with React 16. The changes are minor and should have ignorable impact on performance, only postponing the React calls from loading time to once at runtime. In brief, the current WrapComponent may be changed to:
where
|
Also update dependencies to |
I am not sure if memoizing the factory is necessary here. WarpComponent is called in |
There is currently a mix of incompatible libraries and it is difficult to find the right way to upgrade. The dimensions of complexity are:
Sablono 0.8.4 currently goes the route of [cljsjs, v16, inherit]. For kioo in the short term the combination of [cljsjs, v16, create-react-class] might be the best. In the long run [npm, v16, inheritance] seems to be the future - at least to me. What are your thoughts? |
@jocrau Note that the proposed memoization is on a function with zero arguments returning a function that takes props as argument. Hence the memoized function is called just once, with the function returned being called with the different props. No props are stored in the memoization map. |
@TerjeNorderhaug You are right. Memoization will cause React.createFactory to only be called once. I will try to update Kioo to use create-react-class and send a pull request. |
@TerjeNorderhaug That would be awesome! |
Same problem here. |
Do you have any plans to upgrade supported React version?
The text was updated successfully, but these errors were encountered: