Studio Framework
A React component library for building Studio apps.
Setup
$ git clone https://github.com/movableink/studio-framework.git
$ cd studio-framework
$ yarn
Important Commands
yarn start
: serves the dummy app.yarn test
: runs the test suiteyarn build
: generates a production build
Components
Currently, the only component this library exposes is the <App/>
. On its own, this renders a Studio App's exported JSON as HTML with the proper attributes.
Example Usage:
const { options } = MI;
const tags = JSON.parse(document.querySelector('.mi-attributes').innerHTML);
const queryParams = CD.params();
ReactDOM.render(<App tags={tags} options={options} queryParams={queryParams}/>);
TODO: