【文件属性】:
文件名称:终端在React::man:渲染终端的组件
文件大小:127KB
文件格式:ZIP
更新时间:2021-02-05 01:21:09
react javascript css svg design
React中的终端
呈现终端的组件
目录
安装
npm install terminal-in-react --save
或者如果您使用yarn
yarn add terminal-in-react
该软件包还取决于react因此请确保您已经安装了它。
用法
import React , { Component } from ' react ' ;
import Terminal from ' terminal-in-react ' ;
class App extends Component {
showMsg = () => ' Hello World '
render () {
【文件预览】:
terminal-in-react-master
----.storybook()
--------config.js(132B)
--------webpack.config.js(578B)
----PLUGINS.md(6KB)
----.gitignore(618B)
----__mocks__()
--------styleMock.js(20B)
--------dom.js(543B)
--------fileMock.js(34B)
----README.md(12KB)
----stories()
--------index.js(2KB)
----examples()
--------basic.js(511B)
--------nextLevel.js(1014B)
----.eslintrc(707B)
----__tests__()
--------terminal.test.js(1KB)
--------__snapshots__()
----todo.md(138B)
----package.json(3KB)
----CONTRIBUTING.md(1KB)
----src()
--------js()
----.babelrc(393B)
----LICENSE.md(1KB)
----webpack()
--------config.js(2KB)
--------webpack.config.js(413B)
--------webpack.dev.config.js(530B)
----index.d.ts(992B)
----.hound.yml(104B)
----.eslintignore(19B)
----.npmignore(662B)
----.editorconfig(156B)
----yarn.lock(306KB)