美文网首页React Native开发React Native开发经验集
如何运行一个github上的react的redux 项目

如何运行一个github上的react的redux 项目

作者: wg689 | 来源:发表于2019-10-01 20:57 被阅读0次

前言

当我在网上找到一个redux的项目的时候, 发现不是RN 的是react 的, 想学习下 却不知道如何跑起来 redux代码 , 运行方法

一)下载的文件路径 学习redux 的项目 ,

image.png

二) cd 到 example 目录,

这里面有各种react 的例子cd /Users/wanggang/Downloads/redux-master/examples/todos

2步搞定

npm install ;// 安装依赖包
npm start // 启动项目
各种demo

三) 可能的报错 ,( React 项目永远运行起来 都会有大大小小的坑)

项目中多个nodel_models 可能eslint 的版本不一致 需要删除外面的即可


image.png

运行结果

redux

相关文章

网友评论

    本文标题:如何运行一个github上的react的redux 项目

    本文链接:https://www.haomeiwen.com/subject/lkxlpctx.html