我想注释一下我在下面展示的TSX代码。我该怎么做呢?
<Form.Group controlId="type"> <Form.Label>Type</Form.Label>
发布于 2021-06-13 01:17:03
要在JSX中间添加注释,请使用大括号弹回纯javascript,然后添加您的注释:
<Form.Group controlId="type">
{/* Hello World */}
<Form.Label>Type</Form.Label>
</Form.Group>Typescript不会改变这一点。
https://stackoverflow.com/questions/67951218
复制相似问题