create-react-file:使用命令行创建组件或其他内容

时间:2021-05-13 17:07:12
【文件属性】:
文件名称:create-react-file:使用命令行创建组件或其他内容
文件大小:66KB
文件格式:ZIP
更新时间:2021-05-13 17:07:12
JavaScript 创建React文件 使用命令行创建组件或其他内容 安装 npm install create-react-file -g 执行 $ create-react-file Component 创建文件夹./Component并文件Component.jsx , index.js , Component.css 。 Component.jsx import React , { Component } from 'react' ; import PropTypes from 'prop-types' ; import classnames from 'classnames' ; class Component extends Component { constructor ( props ) { super ( props ) ; } static propTypes =
【文件预览】:
create-react-file-master
----.gitignore(67B)
----README.md(2KB)
----.github()
--------workflows()
----__tests__()
--------files()
--------component.test.js(4KB)
----package.json(780B)
----common.js(1KB)
----index.js(2KB)
----Component()
--------index.js(405B)
--------style.template.js(208B)
--------hooks.js(998B)
--------component.template.js(4KB)
----package-lock.json(179KB)

网友评论