Twind with Preact WMR
See original GitHub issueHi,this is an amazing tool, thank you for you work. I’ll try to use twind inside the new Preact WMR ( https://github.com/preactjs/wmr ) but with the only npm install twind and tailwindcss and the following use:
import { useState } from 'preact/hooks';
import { tw } from 'twind'
export default function Home() {
return (
<>
<p>Hi!</p>
<h1 className={tw`font-bold text(center 5xl white sm:gray-800 md:pink-700)`}>This is Twind!</h1>
</> );
}
doesn’t work, i have a white page and no error as output of npm run start. Is it possible to use with Preact WMR? Thank you.
Issue Analytics
- State:
- Created 3 years ago
- Comments:36 (9 by maintainers)
Top Results From Across the Web
Use with Preact - Twind
How to use Twind with Preact. ... WMR · Vue · Svelte · Lit Element · Web Components · Typescript. # Use with...
Read more >twind-wmr - CodeSandbox
TemplatePreact wmr; Environmentnode. Files. dist. public. package.json. sandbox.config.json. tsconfig.json. yarn.lock. Dependencies. @twind/wmr.
Read more >@rschristian/twind-wmr - npm
Start using @rschristian/twind-wmr in your project by running `npm i ... as ssr } from 'preact-iso'; +import { withTwind } from '@rschristian/twind-wmr'; ...
Read more >@twind/preact v1.0.5 Bundlephobia
Size of @twind/preact v1.0.5 is 907.0 B (minified), and 493.0 B when compressed using GZIP. Bundlephobia helps you find the performance impact of...
Read more >Get Started with WMR
Get up and running with WMR in a few seconds. ... To test things out, create that index.js file and add a simple...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That was it!!! I have a working wmr integration.
I have created an issue (#45) to track the work that needs to be done to support ssr for twind/shim.