({ children })
| 4 | import { html } from 'js-beautify'; |
| 5 | |
| 6 | function Example({ children }) { |
| 7 | const opts = { inline: 'b' }; |
| 8 | const markup = html(ReactDOMServer.renderToStaticMarkup(children), opts); |
| 9 | return ( |
| 10 | <div className="example"> |
| 11 | <div dangerouslySetInnerHTML={{ __html: markup }} /> |
| 12 | <CodeBlock>{markup}</CodeBlock> |
| 13 | </div> |
| 14 | ); |
| 15 | } |
| 16 | |
| 17 | export default Example; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…