Displaying 1 to 1 from 1 results

component-playground - A component for rendering React components with editable source and live preview

  •    Javascript

codeText takes a string of JSX markup as its value. While you can just pass it a string, I find it is easier to make a separate file and use Webpack's raw loader to load in the raw source. In the example above I use the .example extension, and an examples folder to organize my samples.