Thank you for the article, I have checked the examples and still can't be sure if it is okay to use bs components with only data-bs attribute.
Is it a bad practice for React virtual dom to use it like below.
function DropdownDemoBs() { return ( <div class="btn-group"> <button data-bs-toggle="dropdown" class="btn btn-secondary dropdown-toggle" type="button" id="dropdownMenuClickableInside" aria-expanded="false"> Dropdown button bs </button> <ul class="dropdown-menu" aria-labelledby="dropdownMenuClickableInside"> <li><a class="dropdown-item" href="#">Menu item</a></li> <li><a class="dropdown-item" href="#">Menu item</a></li> <li><a class="dropdown-item" href="#">Menu item</a></li> </ul> </div> ) }
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.
Thank you for the article, I have checked the examples and still can't be sure if it is okay to use bs components with only data-bs attribute.
Is it a bad practice for React virtual dom to use it like below.