MCPcopy
hub / github.com/pure-css/pure / Example

Function Example

site/components/Example.js:6–15  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

4import { html } from 'js-beautify';
5
6function 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
17export default Example;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…