-
Perhaps I'm misunderstanding how I have these two
The
But in the DOM, only the list that does not use |
Beta Was this translation helpful? Give feedback.
Answered by
joaom00
Jan 22, 2023
Replies: 1 comment
-
You need to spread the props across the component const TabList = ({ children, ...props }) => {
return <div {...props} className={styles.list} >{children}</div>;
}; And as a good practice |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
benoitgrelard
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to spread the props across the component
And as a good practice
fowardRef
too