Get injected state
import {getState, hydrateFromStream} from '@rambler-tech/react-toolkit/client'import {routes} from './routes'import {MyLayout} from './layout'import {createStore} from './store'const initialState = getState('INITIAL_STATE')const store = createStore(initialState)hydrateFromStream({ routes, Layout: MyLayout, store}) Copy
import {getState, hydrateFromStream} from '@rambler-tech/react-toolkit/client'import {routes} from './routes'import {MyLayout} from './layout'import {createStore} from './store'const initialState = getState('INITIAL_STATE')const store = createStore(initialState)hydrateFromStream({ routes, Layout: MyLayout, store})
Generated using TypeDoc
Get injected state