You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How should I define the type of my Button component so that VS-Code knows that my Button component accepts all the attributes of a normal React button element like style, onClick, className etc?
Right now when I use my Button component VS-Code does not know that it accepts all button attributes and hence does not show auto-complete.
The text was updated successfully, but these errors were encountered:
I am creating a Custom Button component in React. The basic version of the component looks something like this -
How should I define the type of my Button component so that VS-Code knows that my Button component accepts all the attributes of a normal React button element like style, onClick, className etc?
Right now when I use my Button component VS-Code does not know that it accepts all button attributes and hence does not show auto-complete.
The text was updated successfully, but these errors were encountered: