score:0

it seems i was trying to call the button component from within itself with the following code:

//       <button
//         classname={`btn ${checkbuttonstyle} ${checkbuttonsize}`}
//         onclick={onclick}
//         type={type}
//       >
//       {children}
//       </button>

the button component should be the html element like so:

//       <button
//         classname={`btn ${checkbuttonstyle} ${checkbuttonsize}`}
//         onclick={onclick}
//         type={type}
//       >
//       {children}
//       </button>

score:1

are you on localhost:3000 in the browser? react runs on port 3000. confirm that you are at that address in your browser and try to run npm start again in the correct directory where you created your react-app.


Related Query

More Query from same tag