react-embed-code

    0.1.0 • Public • Published

    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} />

    npm version

    Install

    npm install --save react-embed-code

    Keywords

    none

    Install

    npm i react-embed-code

    DownloadsWeekly Downloads

    7

    Version

    0.1.0

    License

    MIT

    Last publish

    Collaborators

    • broucz