命令行的React渲染器

时间:2021-06-08 16:39:37
【文件属性】:
文件名称:命令行的React渲染器
文件大小:137KB
文件格式:ZIP
更新时间:2021-06-08 16:39:37
React Renderers 该存储库现已归档 该项目最初是作为 Ink 库的替代品而创建的,作为用于命令行的真实 React 组件树的单独渲染器。 Ink 已经改变了它的架构,也变成了一个单独的渲染器,允许使用实际的 React 库。 通过此更改,react-cli 除了 Ink 库的功能之外没有增加任何额外的价值,Ink 库拥有更大的用户群并且得到更好的支持。 ReactCLI ReactCLI 是一个用于命令行的 React 渲染器。 React 的所有好处,就在您的终端中。 import ReactCLI, { Section } from "react-cli-renderer"; 从“React”导入React; 从“粉笔”导入粉笔; class MyReactCLIApp extends React.Component { state = { step: 0 }; componentDidMount() { setTimeout(() => this.setState({ step: 1 }), 1000); setTimeout(() => this.setState({ step: 2 }), 2
【文件预览】:
react-cli-master
----.eslintrc.json(359B)
----.gitignore(175B)
----.flowconfig(146B)
----package.json(2KB)
----package-lock.json(278KB)
----src()
--------.babelrc(164B)
--------index.js.flow(612B)
--------index.js(3KB)
--------output.js(12KB)
--------__tests__()
--------reconciler.js(2KB)
--------demo.js(1KB)
--------components.js(2KB)
----jest.config.js(436B)
----LICENSE(1KB)
----flow-typed()
--------npm()
----.github()
--------demo.svg(6KB)
----README.md(4KB)
----lib()
--------index.js.flow(612B)
--------index.js(5KB)
--------output.js(14KB)
--------reconciler.js(3KB)
--------demo.js(5KB)
--------components.js(4KB)
----.circleci()
--------config.yml(778B)
----.prettierrc(23B)

网友评论