React tip: Components designed for a single use should have only required props
React tip: Components designed for a single use should have only required props.
An optional prop for a single use component is illogical. If the prop isn't required for its single use, it shouldn't exist at all.😀
So, only use optional props for reusable components.

If you end up finding a second use case for the component later, it's easy to make the props optional at that time if necessary.
But until then, requiring all props assures the component is called as intended, and avoids confusion about the component's design.
The other reason this matters: Every optional field requires a null check or a default arg.
So needless optional fields create needless extra code, and needless confusion about why the null check/default is necessary.