Tut12 More ReactJS
Tut12 More ReactJS
Tutorial 12
To begin this tutorial, please create a React project using the create-react-app
module as instructed in the lecture. When you finish, zip all your source codes
(excluding the node_modules folder) to submit to this tutorial’s submission box.
Activity 1
Goals
General guidelines
Create a Node.js (Express) application and put the following dictionary object on it:
const dict = {
"pretty": "xinh đẹp",
"car": "xe hơi",
"study": "học tập",
"life": "cuộc sống",
"enormous": "to lớn",
"computer": "máy tính"
};
res.setHeader('Access-Control-Allow-Origin', '*');
Otherwise, the client will be unable to fetch data from the back-end.
To the user, this flashcards application has the same features as the one we built in the
last tutorial. However, from the internal, the system now works differently. To sum up,
the goal of this activity is to build a simple web application where the front-end replies
on the back-end’s functionality.
Activity 2
In this activity, you’ll try to add gameplay functionality to a the tic-tac-toe game UI that
you built in the last tutorial. You should: