https://github.com/nicklayb/react-tictactoe
A TicTacToe game using React Hooks, Context Provider and currying.
https://github.com/nicklayb/react-tictactoe
Last synced: about 1 year ago
JSON representation
A TicTacToe game using React Hooks, Context Provider and currying.
- Host: GitHub
- URL: https://github.com/nicklayb/react-tictactoe
- Owner: nicklayb
- Created: 2019-05-22T02:49:40.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-22T02:50:16.000Z (about 7 years ago)
- Last Synced: 2025-06-14T15:02:42.190Z (about 1 year ago)
- Language: JavaScript
- Size: 299 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TicTacToe
This is a TicTacToe game using React Hooks, Context Provider and currying.
## Learning purposes
Nothing is complicated there as you can see, but I wanted to experiment logic and ui decoupling using Hooks and Context Provider and it turns out to be a real success. These two helps reducing the occurences of side effects and helps state to be immutable which make the app way more understandable.
Feel free to try and see how things were built and don't hesitate to poke me [@_nboisvert](https://twitter.com/_nboisvert) if you have any question on why any decision were made that way.
## Use of currying
After learning Elm and Haskell I realized how currying can help reducing code repition. That said, I think this would be prefered on TypeScript since you may get lost on how and when things are curried.