You can totally do that. There is no right or wrong answer for when to break something into its own component or not. Our form element is very simple, and I grouped the button and the form element together as one logical grouping.
kirupa
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| ✨ Archive Spotlight: Accessing DOM Elements | 1 | 11 | May 3, 2026 | |
| Transferring Properties in React | kirupa.com | 3 | 810 | March 11, 2019 | |
| Spread operator | 1 | 384 | June 6, 2020 | |
| What does it mean to be done declaratively? | 1 | 421 | October 2, 2020 | |
| Going from Data to UI in React | 17 | 2437 | March 21, 2019 |