diff --git a/docs/react.html b/docs/react.html index 3e089aea..554e9414 100644 --- a/docs/react.html +++ b/docs/react.html @@ -51,7 +51,10 @@ const root = createRoot(elm); root.render(<App />); -
npx create-react-app my-app
+
+import React, {Component} from 'react'
import ReactDOM from 'react-dom'
@@ -860,7 +863,7 @@
:- | - |
---|---|
any | 任意类型 |
(props, propName, 组件名称)=>{} | 自定义验证器 |
:- | - |
---|---|
string | 字符串 |
number | 数组 |
func | 函数 |
bool | 布尔值 |
symbol | - |
:- | - |
---|---|
oneOf(any) | 枚举类型 |
oneOfType([type]) | 几种类型中的任意一个类型 |
:- | - |
---|---|
array | 数组 |
arrayOf | 数组由某一类型的元素组成 |
:- | - |
---|---|
object | 对象 |
objectOf | 对象由某一类型的值组成 |
instanceOf(...) | 类的实例 |
shape | 对象由特定的类型值组成 |
exact | 有额外属性警告 |
:- | - |
---|---|
element | React 元素 |
elementType | React 元素类型(即 MyComponent ) |
node | DOM 节点 |