Assignments for Hyper Island Frontend program module: JavaScript and React.
HTML Recap - find and fix the errors in the HTML file.
Style a HTML page, to make it look nice.
JavaScript DOM Manipulation - complete script.js, style the form using only JavaScript.
JavaScript Event Handlers - add click events to all buttons in the JavaScript file. Use different techniques:
- Inline Event Handlers on Button 1
- DOM Level 0 Event Handlers on Button 2
- DOM Level 2 Event Listeners on Button 3
- Event Delegation on Button 4 and 5
- DO NOT delete parent event listener
Prevent event propagation.
Fetch API and Promises.
- Find the error in the GET request
- Finish the GET request
- Implement the POST request using FetchAPI and Promises
Remember to run npm i in the folder react-assignments
Create a form and handle the data in state, and console.log.
Create a Component, that does an API call to get characters from Game of Thrones and display them in a list. https://thronesapi.com/api/v2/Characters
- use the Fetch API to get the data
- use the useEffect hook to fetch the data when the component mounts
- use the useState hook to store the data
- display the data in a list
npm i
- use react router to add routing to the components we've created so far.
- add navigation for the components