Deno Tailwind UI React example
I built this example application to show how you can use Tailwind UI and React
with Deno.
The navigation bar is from
Tailwind UI's preview components list.
I updated it to use NavLinks from React Router. For the body of each page, I
just have it display the name of the page just to demonstrate that the react
router works.
Install
You will need to install packup and twd.
Development
The twd cli tool will update the style.css file as you make changes to your
application.
The packup cli tool will handle hot reloading of the application during
development.
For classes to be included in the styles.css, you must use the tw template
string around the className.
Build
If you have not used the twd cli tool yet, you will need to do so to generate
the style.css file for your build.
The packup cli tool will handle generating a distribution of the application.