https://github.com/broucz/react-embed-code
A simple component to show React code.
https://github.com/broucz/react-embed-code
Last synced: 7 days ago
JSON representation
A simple component to show React code.
- Host: GitHub
- URL: https://github.com/broucz/react-embed-code
- Owner: broucz
- License: mit
- Created: 2015-08-23T17:21:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-23T17:26:27.000Z (almost 10 years ago)
- Last Synced: 2025-05-17T13:07:35.255Z (about 2 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# [React Embed Code](http://broucz.github.io/react-embed-code)
**Simple compoment to embed highlighted React code.**
```js
const str = `
import React, { Component } from 'react';class Root extends Component {
render() {
return (
Root...
);
}
}
export default Root;
`;
```[](https://www.npmjs.com/package/react-embed-code)
## Install
`npm install --save react-embed-code`