What advantage FC function component has over vanilla React function component?
Solution 1:
This is actually not an advantage these days! CRA has actually walked this standard back, hence why it doesn't ship by default anymore in a default npx create-react-app --typescript
.
Here's an GitHub issue that talks about it!
Essentially it implicitly implies that there will always be children by default, which is not necessary and could potentially lead to bugs!
https://github.com/facebook/create-react-app/pull/8177