Closed levinuncu closed 1 year ago
Where is that unconditionally recommended?
ErrorBoundary components still must be class components, and there's a number of patterns that remain clearer/cleaner as class components than SFCs with hooks.
Its recommended in the official react docs: “We recommend to define components as functions instead of classes.“ https://beta.reactjs.org/reference/react/Component
Once those docs are out of beta, this seems like a reasonable change.
Well, docs are now out of beta. What do we do?
Since its recommend to define components as functions instead of classes this should be updated.