A native accordion option would be good – looks like it is being developed currently but probably a way off a shipped version.
As for the ID – In an ideal world I would get something like 1,2,3 but not essential. What I do need is for it to be the same in a couple of places in the code so that the show/hide works. I am building it based on Bootstrap styles.
Currently I have not started with this as Hooks are completely new to me so no idea where to start.