@rdementev/heaven-help v0.1.23
при подключение в проект redux redux-saga 1 подключить редюсер import {helpReducer} from "@rdementev/heaven-help"; const createReducer = () => { return combineReducers({ router: connectRouter(history), heavenHelp: helpReducer, ...other }) }
2 подключить сагу import {helpSaga} from "@rdementev/heaven-help"; export default function* rootSaga () { yield all( fork(helpSaga), ...other ) }
3 передать в сагу url модуля const sagaMiddleware = createSagaMiddleware({ context: { moduleUrl: '/user_documentation' } });
4 подлкючить компонент userPath - url по которому будет доступен компонент localhost:3005/docs import Documentation from '@rdementev/heaven-help' const ContainerDocumentation = (props) => { return ( <Documentation userPath={'docs'}/> )
} export default ContainerDocumentation
при подключении со своим стором
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago