question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Twind with Preact WMR

See original GitHub issue

Hi,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:closed
  • Created 3 years ago
  • Comments:36 (9 by maintainers)

github_iconTop GitHub Comments

7reactions
sastancommented, Dec 30, 2020

That was it!!! I have a working wmr integration.

2reactions
sastancommented, Dec 31, 2020

I have created an issue (#45) to track the work that needs to be done to support ssr for twind/shim.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found