score:1

Accepted answer
const button = ({ children, ...props }) => {

it should be like this, props is not second parameter

score:0

when declaring the button component, try moving the props inside the destructed object like this and ... in front of it.

const button = ({ children, ...props }) => {.......};


Related Query

More Query from same tag