0.1.1 • Published 3 years ago

dan-cms-library v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

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

  1. Wrap your component in ShowContent like:- export default ShowContent(App);

  2. 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);

    }

  3. Now, enjoy the content like: render() { const { cmsContent, cmsError, loading } = this.props; }