Question · JavaScript and React course · Module 5: useEffect and Custom Hooks
Side Effects in React
Which of the following is an example of a side effect in React?
Answer options
- Sending an HTTP request to an external API
- Rendering a JSX element on the screen
- Declaring a const variable inside a component
- Returning a value from the component function
You can check the correct answer by solving this task in the CodeWorlds game.