What is the usual process of turning a regular htm...
# javascript
n
What is the usual process of turning a regular html element into a React Element 1) I can apply classes in the css and in the attrs section, where do they go (in the example below)? 2) Can I slap them all in a single string like in html? Or do I have to create a mutable list every time? (class("btn-close text-reset") or class = mutableListOf("","") 3) How do I add custom attributes? ("data-bs-dismiss" in the example)
Copy code
<button type="button" class="btn-close text-reset" data-bs-dismiss="offcanvas" aria-label="Close"></button>
Using this as an example, as it has all of the above questions. Classes are from bootstrap
t
Do you use/need
styled
in addition?