react-live
react-live copied to clipboard
how to set code in LiveEditor that isn't used?
code: `class MarkdownEditor extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);

Yes. I'm re-creating reactjs.org website. its been a real joy so-far :)
ah found one way. edit the theme with plain: {tabSize: '12px' } , neat :)
is it possible to add code that doesn't run in live editor? example:
import styled from 'styled-components'
const Header = () => {
return <div>text</div>
}
and only run the const code, and not the import line.