跳到主要内容

<html.button>

<html.button> 组件允许您渲染一个交互式元素。

概览

要显示一个响应指针和键盘交互的交互式元素,请渲染 <html.button> 组件。

import { html } from 'react-strict-dom';

const Foo = () => <html.button onClick={() => {}} />

属性