0.2.0 • Published 7 years ago
studio-framework v0.2.0
Studio Framework
A React component library for building Studio apps.
Setup
$ git clone https://github.com/movableink/studio-framework.git
$ cd studio-framework
$ yarnImportant 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:
- Finish this README
- Add some tests
- Travis CI
- Stop vendoring Cropduster