I have an interface called Widget
which is used throughout my project. However, it is also used as props for a component called Widget
.
What is the best way to handle this? Should I change the name of my Widget
interface? I've seen other people talk about NOT using IWidget
, but no one talks about what to do instead. Thanks!
The convention is to use the Props
suffix.
For Widget
it would be WidgetProps
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With