preline
preline copied to clipboard
[Website] Add JSX code snippets in component examples
Summary
Add JSX code snippets along with HTML
Detailed Description
Many of the users uses react for building website, copying the html requires us to again convert it to jsx by changing class
to classname
(mostly the class attribute) and other HTML attributes as well, almost all of the HTML attributes are need to be camel cased to use in JSX, see here. To ease up the work, I would request to add a tab for jsx
code as well along with the html
code this way, we can directly copy jsx from the examples and wouldn't need to rename all the class and other attributes every time we copy and paste a component, I am looking forward to this and thank you for this wonderful library ❤️
Use Cases
In the example components tab like daisyUI or other tailwind component library as well