【文件属性】:
文件名称:react-hooks-codemirror:一个很好的整洁的React组件包装,适用于CodeMirror
文件大小:166KB
文件格式:ZIP
更新时间:2021-05-06 04:33:15
JavaScript
react-hooks-codemirror
一个适用于CodeMirror的不错的React小组件
用法
let options = {
lineNumbers : true ,
highlightFormatting : true ,
tabSize : 2 ,
theme : "dracula"
} ;
let language = "javascript" ;
// If you want to have a custom theme, make this true,
// and include your CSS wherever this component is used.
// You can pick a default theme from here:
// https://codemirror.net/demo/theme.html
let cust
【文件预览】:
react-hooks-codemirror-master
----public()
--------index.html(206B)
----yarn.lock(366KB)
----src()
--------codemirror.js(582B)
--------exampleuglytheme.css(2KB)
--------codemirror.test.js(789B)
--------index.css(77B)
--------Demo.js(501B)
--------index.js(171B)
----scripts()
--------build.js(6KB)
--------start.js(5KB)
----config()
--------jest()
--------env.js(3KB)
--------webpack.config.js(29KB)
--------webpackDevServer.config.js(6KB)
--------modules.js(4KB)
--------paths.js(3KB)
--------pnpTs.js(620B)
----README.md(520B)
----.gitignore(88B)
----index.js(44B)
----package.json(3KB)