Thanks for this. Would it work the same way with Bootstrap 5 since it doesn't use jQuery? I tried to append a collapsable element using useEffect in react, but that didn't work for me.
Sorry about the late reply.
Yes it should work the same way with Bootstrap 5 with appropriate classes.
I tried to append a collapsable element using useEffect in react, but that didn't work for me.
I don't fully understand what you mean here. Could you maybe drop a snippet?
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for this. Would it work the same way with Bootstrap 5 since it doesn't use jQuery? I tried to append a collapsable element using useEffect in react, but that didn't work for me.
Sorry about the late reply.
Yes it should work the same way with Bootstrap 5 with appropriate classes.
I don't fully understand what you mean here. Could you maybe drop a snippet?