JSX语法详解
摘要:一、基础1、JSX是什么JSX是一种像下面这样的语法: const element = <h1>Hello, world!</h1>;它是一种JavaScript语法扩展,在React中可以方便地用来描述UI。 本质上,JSX为我们提供了创建React元素方法(React.createElement
阅读全文
posted @ 2021-05-24 18:05
posted @ 2021-05-24 18:05
posted @ 2021-05-20 11:17
posted @ 2021-05-17 14:22
posted @ 2021-05-12 15:37