@cloudflare/component-code

Cloudflare Code Component

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@cloudflare/component-code
Minified + gzip package size for @cloudflare/component-code in KB

Readme

@cloudflare/component-code

Cloudflare Code Component

Installation

Installation with yarn is recommended


$ yarn add @cloudflare/component-code

Usage

import React from 'react';
import { Code } from '../../src';

class CodeComponent extends React.Component {
  render() {
    return (
      <div>
        <Code isCodeBlock={true}>Look at this code block!</Code>
        <br />
        And this <Code>inline code</Code>!
      </div>
    );
  }
}

export default CodeComponent;

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.