React 使创建交互式 UI 变得轻而易举。为你应用的每一个状态设计简洁的视图,当数据改变时 React 能有效地更新并正确地渲染组件。
工具/原料
1
vscode
2
js
方法/步骤
1
第一步创建一个index.js文件
2
在index.js文件中,导包import React from 'react'
3
创建一个模板,可以在vscode中输入rcc,自动创建class Index extends React.Component{ render(){ return(
) }}4
把组件暴露出去export default Index
注意事项
react
上一篇:如何开展班集体的建设
下一篇:怎么搭建物联网处理器?