Open rmallols opened 6 years ago
Hint: use the setTimeout function to change the message after 3 seconds: https://www.w3schools.com/Jsref/met_win_settimeout.asp
Hint: use arrow functions, when possible https://codeburst.io/javascript-arrow-functions-for-beginners-926947fc0cdc
Hint: change the message inside of the componentDidMount hook method, to ensuring model is updated once the UI is ready https://reactjs.org/docs/react-component.html#componentdidmount
Related task on Kodflix: rmallols/kodflix#13
The
state
is a core concept in React. Its main purpose is to update the UI immediately as soon as soon as the data model changes: https://www.tutorialspoint.com/reactjs/reactjs_state.htmLive demo: https://jsfiddle.net/67675ag9
keys
with a loading message (Generating keys...
).