Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/broucz/react-embed-code
A simple component to show React code.
https://github.com/broucz/react-embed-code
Last synced: 22 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 (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-23T17:26:27.000Z (over 9 years ago)
- Last Synced: 2024-12-21T00:13:54.556Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 1
- Watchers: 2
- 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;
`;
```[![npm version](https://img.shields.io/npm/v/react-embed-code.svg?style=flat-square)](https://www.npmjs.com/package/react-embed-code)
## Install
`npm install --save react-embed-code`