This example shows how to use the styled components css-in-js library with twin.macro within Preact.
Download this example using degit:
npx degit https://github.com/ben-rogerson/twin.examples/preact-styled-components folder-name
From within the new folder, run npm install
, then npm start
to start the dev server.