- Input text to the 'Top text' and 'Bottom text' inputs to generate text above and below the image.
- Click the button to generate a new image.
Note
No data is saved.
Note
(Free) subscription and login required to follow the course.
- Any code that affects an outside system, e.g.
- local storage, API, websockets, two states to keep in sync.
Anything that React is in charge of, e.g.
- Maintaining state,
- keeping the UI in sync with the data,
- rendering DOM elements.
- As soon as the component loads (first render).
- On every re-render of the component (assuming no dependencies array).
- when the values of the dependencies in the array stay the same between renders.
- Second parameter to the useEffect function.
- A way for React to know whether it should re-run the effect function.
Tested on Windows 10 with:
- Chrome
- Firefox
- Microsoft Edge
Page tested in both browser and device views.