Any plan to support React? #451
Answered
by
saadeghi
kaushalyap
asked this question in
Q&A
-
I know there is examples in the repo using React but it seems they use non interactive elements like buttons Any plans to support interactive elements like Dropdowns, drawers, modals with React support? |
Beta Was this translation helpful? Give feedback.
Answered by
saadeghi
Feb 9, 2022
Replies: 1 comment 3 replies
-
daisyUI is just CSS. For React, you just need to replace a few things in your HTML: Replace |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
kaushalyap
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
daisyUI is just CSS.
So everything works in React, Vue, Svelte, etc...
For React, you just need to replace a few things in your HTML: Replace
class
withclassName
and make sure all self closing tags have slash at the end (like<input />
instead of<input>
)