-
-
Notifications
You must be signed in to change notification settings - Fork 634
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
[feat request] CreateContext API #1299
Comments
If anyone needs this, I converted https://github.com/kurdin/create-inferno-context based on this polyfill I converted |
Can you paste an example of how this would work within a react app using inferno-compat? What's the alias in webpack look like? |
@tamb maybe something like preactjs/preact#963 (comment) ? |
for the record, here is another way of adding the import React from 'inferno-compat'
export default React
export * from 'inferno-compat'
// bypass export of React.createContext
import createContext from 'create-react-context/lib/implementation'
export { createContext } finally, add the following alias in the 'react': './lib/inferno-compat'
'react-dom': './lib/inferno-compat' |
So how can i use createContext in infernojs? What is right/recommended way? |
This is still an issue. Is there any action that's being taken? |
Any plans for CreateContext API support like React 16 ?
https://medium.com/dailyjs/reacts-%EF%B8%8F-new-context-api-70c9fe01596b
https://medium.com/workshop-me/render-props-react-createcontext-but-how-9c8e457a90e3
https://www.jernejsila.com/2018/03/04/new-react-context-api/
maybe this can be converted to inferno ? https://github.com/rognstadragnar/preact-context-utilities
The text was updated successfully, but these errors were encountered: