1. It's easier to read configuration
Reading code is complicated because you have to figure out what the logic is doing, but configuration is very straightforward to understand.
2. Less logic means less bugs
The config above is just a boring array with some objects. It's pretty simple, so it's unlikely that bugs would come from there.
3. Dynamic components are more flexible
Because we've made this menu component dynamically render out the different menu items, we gain tremendous flexibility.
No comments:
Post a Comment