0.1.1 • Published 3 years ago
dan-cms-library v0.1.1
dan-cms-library
Steps to use package with application on your local system
remove node_modules and package-lock.json
npm install --save git+https://gitea-tooling.az.devops.gdpdentsu.net/gdp-taxonomy/dan-cms-ui#master
npm install
Use package in your application folder
import ShowContent from 'dan-cms-library', and use it as an HOC.
Add Components in package
Wrap your component in ShowContent like:- export default ShowContent(App);
You get a setData function in props, use that to send key i.e
constructor(props) { super(props); const key = { language: "en", routes_code: "addfields", collectionName: "danlabels" } props.setData(key);
}
Now, enjoy the content like: render() { const { cmsContent, cmsError, loading } = this.props; }
0.1.1
3 years ago