Rax createContext polyfill
npm install rax-polyfill-contextrax-polyfill-context> Polyfill for Rax new context api
>= rax@0.6.5
``jsx
import { render } from 'rax';
import { createContext } from 'rax-polyfill-context';
const Context = createContext();
function App() {
return (
{value}
render((
), document)
``
For more usage, see
You can use it with rax-polyfill-ref and rax-polyfill-hooks