react
文章平均质量分 59
selectDele
每一个人都有缺点,正视它
展开
-
React快速开发框架
快速搭建项目webpack+react+react-router+typescript原创 2024-08-06 17:16:47 · 487 阅读 · 0 评论 -
React 17.X 使用 TypeScript
由于Create React App 内置了对 TypeScript 的支持,可以使用以下方式创建react的typescript项目。需要创建一个使用 TypeScript 的新项目,在终端运行:npx create-react-app my-app --template typescript如需将 TypeScript 添加到现有的 Create React App 项目中,请参考此文档.如还需要其他支持可以看React官方文档...原创 2021-08-06 00:11:23 · 449 阅读 · 0 评论 -
启动react-native项目时 node窗口闪退
有很多原因,其中一个原因是 node 版本过高,导致不兼容。1、node 版本过高官方链接是:https://github.com/facebook/metro/pull/464/commits/7d0464836890163c02790f1bf4d8550a34fb95a3,点击链接可以查看到具体的原因是因为新版本修改了sharedBlacklist正则表达式导致旧版本不能匹配而导致的...原创 2020-02-26 11:07:23 · 1709 阅读 · 2 评论 -
The current character read is 'E' with an int value of 69 Unable to determine the current character,
[react-native] The current character read is 'E' with an int value of 69Unable to determine the current character, it is not a string, number, array, or object这是由于文件生成错误,需要删除build文件项目目录\androi...原创 2020-02-26 11:02:47 · 2566 阅读 · 2 评论 -
react的安装与使用
一、脚手架工具create-react-app安装使用以下命令进行安装脚手架:npm install -g create-react-app二、create-react-app的使用在需要创建项目的位置打开命令行 输入create-react-app + 项目名称的命令,比如:create-react-app todolist当项目创建完成后,可以进入项目,并启动:...原创 2019-10-22 14:18:28 · 182 阅读 · 0 评论