Last active
March 26, 2020 02:44
-
-
Save mattbajorek/ab3697a70d409e9bad6fdd51cdabcb6d to your computer and use it in GitHub Desktop.
todos-redux-to-react-sweet-state entry point
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import { render } from 'react-dom' | |
import App from './components/App' | |
import { defaults } from 'react-sweet-state' | |
import { produce } from 'immer' | |
defaults.mutator = (currentState, producer) => produce(currentState, producer) | |
render( | |
<App />, | |
document.getElementById('root') | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment