setState not triggering re-render

Hi guys, I’m fiddling with hooks and looking for feedback and hopefully a solution.

https://codepen.io/VilfredSikker/pen/orwryV
My custom select only re-renders when my ‘header’ is clicked and not when an option is clicked. What am I doing wrong here and am I using hooks correctly?

To reproduce: click-> header-> element in list -> header -> header

Line 20

var list = [...state] // <-- make a copy of the array
1 Like

Oh god :rofl:
Thank you!