react-embed-code
v0.1.0
Published
Simple compoment to embed highlighted React code.
Downloads
25
Readme
React Embed Code
Simple compoment to embed highlighted React code.
const str = `
import React, { Component } from 'react';
class Root extends Component {
render() {
return (
<div>Root...</div>
);
}
}
export default Root;
`;
<Code embed={str} />
Install
npm install --save react-embed-code