packages/decap-cms-app/README.md
For a Decap CMS overview, see the general Decap CMS project README.
This package is similar to the decap-cms package, but is designed for use with extensions. It serves that purpose in the following ways.
init method.react or react-dom - they are required as peer dependencies.decap-cms-media-library-cloudinary]decap-cms-media-library-uploadcare]Install via script tag:
<!-- Excluding `doctype` and `head` but you should add them -->
<body>
<!-- Add these scripts to the bottom of the body -->
<script src="https://unpkg.com/react@^18/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@^18/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/decap-cms-app/dist/decap-cms-app.js"></script>
<!-- Initialize the CMS -->
<script>
DecapCmsApp.init();
</script>
</body>
Install via npm:
npm i react react-dom decap-cms-app
import CMS from 'decap-cms-app';
CMS.init();