Skip to content

Instantly share code, notes, and snippets.

@conorhastings
Last active June 13, 2016 12:18
Show Gist options
  • Save conorhastings/060c4d3199e43e82ac5940760c0b0cbe to your computer and use it in GitHub Desktop.
Save conorhastings/060c4d3199e43e82ac5940760c0b0cbe to your computer and use it in GitHub Desktop.
import React from 'react';
import { render } from 'react-dom';
import SyntaxHighlighter from 'react-syntax-highlighter';
import { docco } from 'react-syntax-highlighter/dist/styles'
import markdown from 'markdown';
class X extends React.Component {
render() {
return (
<SyntaxHighlighter language='javascript' style={docco}>
{markdown.markdown.toHTML('##Use npmnpm init --yes')}
</SyntaxHighlighter>
);
}
}
render(<X />, document.getElementById('app'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment