Nice tutorial! Note that wireframe={true} is a bit explicit, for boolean props you have a shorthand of just wireframe. And that will pass true for this prop.
wireframe={true}
wireframe
Thanks! I actually like to sometimes explicitly note that a prop is a boolean this way, just my preference I guess.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice tutorial! Note that
wireframe={true}
is a bit explicit, for boolean props you have a shorthand of justwireframe
. And that will pass true for this prop.Thanks! I actually like to sometimes explicitly note that a prop is a boolean this way, just my preference I guess.