Last active
June 13, 2016 12:18
-
-
Save conorhastings/060c4d3199e43e82ac5940760c0b0cbe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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