Skip to content

Instantly share code, notes, and snippets.

@mattbajorek
Last active March 26, 2020 02:44
Show Gist options
  • Save mattbajorek/ab3697a70d409e9bad6fdd51cdabcb6d to your computer and use it in GitHub Desktop.
Save mattbajorek/ab3697a70d409e9bad6fdd51cdabcb6d to your computer and use it in GitHub Desktop.
todos-redux-to-react-sweet-state entry point
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