Socket
Book a DemoInstallSign in
Socket

@wooritech/code-board-react

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wooritech/code-board-react

react component that wraps code-board

1.0.0-alpha.8
latest
npmnpm
Version published
Maintainers
4
Created
Source

CodeBoardReact

React Component that wraps CodeBoard

install

npm i @wooritech/code-board @wooritech/code-board-react

usage

import React, { useRef, useEffect } from "react";
import { CodeBoardReact } from '@wooritech/code-board-react'
import { PresetType } from '@wooritech/code-board/lib/types'
import "@wooritech/code-board/lib/style.css";

const App = () => {
    const cpreset = {
      name: "demo",
      type: PresetType.STATIC,
      files: {
        "indexs.js": {
          content: 'console.log("hi");'
        }
      } 
    };

    const cconfig = {
      isFixedTemplate: true
    }
  
    return (
      <div className="App">
        <CodeBoardReact preset={cpreset} config={cconfig} />
      </div>
    );
  };
  
  export default App;
  

style

The style is not applied by default. Please use "@wooritech/code-board/lib/style.css" or copy it to customize.

Keywords

codeboard

FAQs

Package last updated on 31 Mar 2020

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.