19 lines
490 B
TypeScript
19 lines
490 B
TypeScript
|
import './App.css'
|
||
|
import React from 'react'
|
||
|
import {Provider} from 'react-redux'
|
||
|
import {PersistGate} from 'redux-persist/integration/react'
|
||
|
import RootComponent from './RootComponent'
|
||
|
import {persistor, store} from './store/reducers/store'
|
||
|
|
||
|
const App: React.FC = () => {
|
||
|
return (
|
||
|
<Provider store={store}>
|
||
|
<PersistGate loading={null} persistor={persistor}>
|
||
|
<RootComponent/>
|
||
|
</PersistGate>
|
||
|
</Provider>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default App
|