3 ms·
React expects and recommends you to use side-effects.
by the_gipsy 4y ago
React expects and recommends you to use side-effects.
- davnicwil 4y agoThis is not my understanding of React - can you elaborate? Its original value prop was one way data flow and pure functional UI based on passed in props. It allows for side effects, to get certain things done pragmatically, but in my view does not encourage them in any way.
- the_gipsy 4y agohttps://react.dev/reference/react/useEffect#what-are-good-alternatives-to-data-fetching-in-effects https://react.dev/reference/react/useEffect#what-are-good-al...