0.1.3 • Published 5 years ago

react-cep v0.1.3

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

CircleCI NPM version NPM downloads License Issues

react-cep is a React component library for Adobe CEP (Common Extensibility Platform) plugins.

Get Started

npm install --save react-cep
import { render } from 'react-dom'
import SystemContainer from 'react-cep/SystemContainer'
import SystemState from 'react-cep/SystemState'

const systemState = new SystemState()
const root = document.getElementById('root')
const load = () => render((
  <SystemContainer systemState={systemState} errorEvent={'plugin.error'} theme={{}}>
    <p>Foobar!</p>
  </SystemContainer>
), root)

load()

Note: It is not recommend to import the react-cep root. If you do so, it will return nothing as the index.js file in the package is used for development purposes. Each component has been packaged separately in order to allow developers to only import what they need.

Features

  • Provides a stable foundation for CEP plugin developers to build on in order to quickly release plugins.
  • Includes several components, documented through the tests for now.