This project is under heavy development If you a looking for a stable one you can use jotted or editr.js
Code playground
A component for rendering HTML, CSS, Javascript code with editable source and live preview. You can think of this like CodePen or JSFiddle of you own.
Install
npm install --save code-playground
(WIP)
Plugins
Parsers (aka preprocessors)
code-playground
is a lightweight component with no built-in preprocessors (I called them parsers).
You can add parsers via plugin interface.
List of available parsers
- SASS (built-in, will be refactored into it's own package)
Development
git clone https://github.com/thangngoc89/react-playground-component
npm install
npm start
FAQ
component-playground
1. How is this different fromcomponent-playground
is for React Components while code-playground
is for any front-end code that can be display on browser.
2. Can I use this on a site doesn't use React ?
Sorry but I don't have plan for this at the momment.
You can use some standalone alternative solution like jotted or editr.js. In facts, Code playground was inspired by those projects