const { renderToString } = require('react-dom/server') const { transform } = require('./babel') // These all need to be here even though eslint doesn't think so /* eslint-disable */ const React = require('react') const CodeBlock = require('../../dist/react/CodeBlock') const CoolTable = require('../../dist/react/CoolTable') const CodeEditor = require('../../dist/react/CodeEditor') /* eslint-enable */ const renderReact = async componentStr => { const componentName = componentStr.match(/[^<]([a-zA-Z])*/gm)[0] const jsx = `