摘要:
基础Hook 1、useState const [state, setState] = useState(initialState); //返回一个state变量,指为initialState,setState函数用来设置state的值 setState(1) 2、useEffect const [ 阅读全文
摘要:
1、在组件中直接使用style,注意,div1各个属性值加双引号 const div1 = { width: "300px", margin: "30px auto", backgroundColor: "#44014C", //驼峰法 minHeight: "200px", boxSizing: 阅读全文