Closed cdoremus closed 1 year ago
I tried adding the tailwind context and hook to the app.tsx
file like is done in the with-twind example, but when I did that I got a "No TWProvider found" error.
I think it just needs
import { tw } from "twind"
after that provider import
If your going from the with-twind example, you would need to place the provider around in the App on client and server if your receiving that context error.
We should probably rework the create so it matches the example?
@mashaal It works. Thank you!
@deckchairlabs it works with your solution too, but I think that @mashaal solution (#192) is better since it does not rely on extra code in the src/context
and src/hooks
folders, so I would prefer the the with-twind example be modeled after #192 (with one exception: #192 needs to show twind use in the HTML markup. The setup is correct, but tailwind styling is not applied to anything in app.tsx
).
Setup works with PR #192, but an example of Tailwind styling is still needed.
Running the create script as thus:
Produces an app that does not use Tailwind in the app. Here's what the
app.tsx
file looks like and you can see that there is no tailwind classes referenced in it: