redux example init

This commit is contained in:
Dmitry Vasilev
2023-06-15 18:16:56 +03:00
parent dc526137be
commit 4996e8f86d
18 changed files with 436 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import React from 'react'
import { render } from 'react-dom'
import { createStore } from 'redux'
import { Provider } from 'react-redux'
import App from './components/App'
import rootReducer from './reducers'
const store = createStore(rootReducer)
render(
<Provider store={store}>
<App />
</Provider>,
document.getElementById('root')
)