Socket
Book a DemoInstallSign in
Socket

@cloudflare/component-code

Package Overview
Dependencies
Maintainers
43
Versions
514
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudflare/component-code

Cloudflare Code Component

latest
npmnpm
Version
5.0.3
Version published
Weekly downloads
1.3K
62.76%
Maintainers
43
Weekly downloads
 
Created
Source

@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;

FAQs

Package last updated on 10 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts