Objectives
- Understand how state drives changes to an interface in React
- Respond to user events in React
- Understand and use REST APIs
- Use React life cycle methods
- Understand and interpret API documentation
- Use fetch to perform POST request Requirements
- Read over the documentation for the API we'll be using:
https://minesweeper-api.herokuapp.com/
- You will need to interpret the response and render a graphical user interface. The API results include an array of arrays (two-dimensional array), these represent rows and columns. These are probably best translated into table rows () and table data () cells.
Explorer Mode
- Create a new game when the page loads, and render it on the screen
- Style the cells appropriately.
- Left clicking a cell performs the check action
- Right/secondary clicking a cell performs the flag action
- When the game status changed to won or lost, show a victory or failure message.