Skip to content
项目

关于

A "Simon Says" game built with React and Redux 👾

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

This project was bootstrapped with Create React App.

Blogpost on how and why's I built this app

React Simon Says

React Simon Says

So basically I needed a reason to play with the awesome Styled Components from @mxstbr and then I decided to build a "Simon Says" like game

You can play it here

Summary

The app was build with redux so it was quite simple to manage the data flow using async functions together with redux-thunk

tl;dr thunks and async functions play nice together :heart:

const foo = (payload) => async (dispatch) => {
  await sleep(500);
  dispatch(bar());
};

Quick Start

$ git clone https://github.com/weslleyaraujo/react-simon-says.git
$ cd react-simon-says
$ npm install
$ npm start

Specs

I am using Jest as my spec runner, you can run it using:

$ npm test

and to get a coverage overview:

$ npm test -- --coverage

Contributing

Changes and improvements are more than welcome! Feel free to fork and open a pull request. Please make your changes in a specific branch and request to pull into master! If you can, please make sure the game fully works before sending the PR, as that will help speed up the process.

License

This application is licensed under the Beerware License

探索相关项目

加载中…