Using React JS components method I have developed a Tic Tac Toe 2 player game & hosted it on heroku. The link is ukifunwork3byparani.herokuapp.com.
For that first I downloaded Node JS & NPM in my PC.
Then I run
npm install -g create-react-app
The above command will create a react app folder.
The rest of the works were done by using a tutorial published in the React JS official page.
There 2 main components used.
- Presentational Component
- Container Components
In container components it consists of arguments when user click in the client side.
After that User's name taking method was built & implemented on it.
If a player wins.. An alert button will pop-up with the name of the player who won.