Engineer | Lover of dogs, books, and learning | Dos XX can be most interesting man in the world, I'm happy being the luckiest. | I write about what I learn @ code-comments.com
Oy - thank you for pointing that out! That's a mistake on my end.
I've updated the post to reflect what I meant. Bear in mind that the use of input and button are purely illustrative and could be anything. The bigger point is that the base elements are different and so can't simply be extended.
But we can use the css method to create a shared UI and eliminate some duplication.
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.
Oy - thank you for pointing that out! That's a mistake on my end.
I've updated the post to reflect what I meant. Bear in mind that the use of
input
andbutton
are purely illustrative and could be anything. The bigger point is that the base elements are different and so can't simply be extended.But we can use the
css
method to create a shared UI and eliminate some duplication.