- createElement(type, rawProps, ...rawChildren):
| ComponentNode
| HTMLElement
| DocumentFragment
| SVGElement Parameters
- type: JSXElementType
- rawProps: AttributesArg
Rest
...rawChildren: any[]
Returns
| ComponentNode
| HTMLElement
| DocumentFragment
| SVGElement
Methods
attachRef
- attachRef(el, ref): void
Parameters
- el: HTMLElement
- ref: RefObject | RefFn | (RefObject | RefFn)[]
Returns void
detachRef
- detachRef(ref): void
Parameters
- ref: RefObject | RefFn | (RefObject | RefFn)[]
Returns void
isValidAttribute
- isValidAttribute(name, value): boolean
Returns boolean
style 支持对象和字符串形式,但是嵌套的对象形式不支持。 事件 支持函数或者函数数组 className 支持对象