摘要: 1 使用styled-component npm install styled-components conponents/app-header index.jsx style.js 样式--每个组件都有自己样式 import styled from 'styled-conponents' expo 阅读全文
posted @ 2024-05-11 17:06 青橙娃娃 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 1 配置store 1)安装 npm install @reduxjs/toolkit react-redux 【index.js】 import {Provider} from 'react-redux' import {store} from 'store' <Provider store={s 阅读全文
posted @ 2024-05-11 15:42 青橙娃娃 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 1 ,建立工程的2种方式 1)用npm npx react-create-app xxx 2) 用脚手架 creacte-react-app xxx【推荐】 2, 更换项目图标和title(属于公共的东西在public文件夹里面) public/favicon.ico public/index.ht 阅读全文
posted @ 2024-05-11 15:05 青橙娃娃 阅读(11) 评论(0) 推荐(0) 编辑