Hello! I noticed a potential issue within the final-code directory for trekbag:
The ButtonGroup component is not passing children to the Button component despite the Button component being written to accept the children prop (not the text prop):
|
<Button |
|
key={button.text + button.onClick.toString()} |
|
text={button.text} |
|
onClick={button.onClick} |
|
buttonType="secondary" |
|
/> |
This results in each Button's text not showing:

Adjusting the ButtonGroup component like so fixes the issue:


Hello! I noticed a potential issue within the
final-codedirectory fortrekbag:The
ButtonGroupcomponent is not passing children to theButtoncomponent despite theButtoncomponent being written to accept thechildrenprop (not thetextprop):Professional-React-and-Next.js-Course/trekbag/final-code/src/components/ButtonGroup.jsx
Lines 34 to 39 in 64c3b0d
This results in each Button's text not showing:

Adjusting the
ButtonGroupcomponent like so fixes the issue: