ssq-code-editor
v0.1.3
Published
[TOC]
Readme
[TOC]
Installation
npm i ssq-code-editorCode Editor

Properties
| Name | Default | Type | Desc | | ------ | ---------------------- | ------ | -------------------------- | | id | random | String | Id สำหรับอ้างอิง component | | value | "// type your code..." | String | code ที่แสดงบน editor | | width | 500 | Number | ความกว้างของ code editor | | height | 500 | Number | ความสูงของ code editor |
Example
import React, { Component } from "react";
import { JavaEditor } from "../../src";
export default class App extends Component {
render() {
return (
<>
<JavaEditor value="// type your code..." width={500} height={500} />
</>
);
}
}