【文件属性】:
文件名称:simple-react-comments:使用React和Typescript构建的React注释模块
文件大小:136KB
文件格式:ZIP
更新时间:2021-05-09 16:57:14
TypeScript
简单React评论 :speech_balloon:
使用React和Typescript构建的React注释模块。
快速开始
安装
纱
yarn add simple-react-comments
Npm
npm i -S simple-react-comments
用法
import * as React from 'react' ;
import CommentsBlock from 'simple-react-comments' ;
import { commentsData } from './data/index' ; // Some comment data
class App extends React . Component {
constructor ( props ) {
super ( props ) ;
this . state = {
comments :
【文件预览】:
simple-react-comments-master
----.gitignore(934B)
----.babelrc(207B)
----webpack.dev.js(593B)
----package.json(3KB)
----tslint.json(251B)
----src()
--------components()
--------setupEnzyme.js(177B)
--------models()
--------__tests__()
--------styles()
--------index.tsx(87B)
----dist()
--------src()
--------index.js(69KB)
--------index.js.map(9KB)
----LICENSE(1KB)
----public()
--------index.html(375B)
----__mocks__()
--------styleMock.js(21B)
----tsconfig.json(383B)
----webpack.prod.js(711B)
----.eslintrc.js(504B)
----README.md(4KB)
----webpack.common.js(1KB)
----.vscode()
--------settings.json(87B)
----preview()
--------data()
--------css()
--------index.tsx(305B)
--------App.tsx(2KB)
----yarn.lock(318KB)