MCPcopy Create free account
hub / github.com/Lobos/react-ui /

Class

docs/src/js/Code.js:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3import { Component, PropTypes } from 'react';
4
5const Code = class extends Component {
6 constructor (props) {
7 super(props);
8 }
9
10 componentDidMount () {
11 window.prettyPrint(null, this.code);
12 }
13
14 render () {
15 return (<div className="code" ref={(c) => this.code = c}><pre className="prettyprint">{this.props.children}</pre></div>);
16 }
17}
18
19Code.propTypes = {
20 children: PropTypes.any

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected