preact Questions

2

Solved

The Preact CLI claims it supports CSS Modules out of the box. So this is what I tried; Given 2 files index.js and index.module.scss in the same folder I tried this: index.js import { h, Component...
Maxfield asked 5/3, 2018 at 19:37

2

Solved

I'm trying to figure out how to structure the frontend part of a web application using typescript, preact and preact-router. I've come a long way but I still need to figure out how to programmatica...
Nordstrom asked 9/3, 2017 at 21:32

2

Sometimes I need to create a wrapper element that will show its children (or not) according to its own logic, optionally wrapping them in its own choice of elements: <SomeWrapper some={conditio...
Unshod asked 4/4, 2018 at 16:23

4

Solved

I'm using Preact as my View framework (can NOT use React due to the Facebook IP problems). I needed to use React Router for the location routing because it has more flexibility than the Preact Rout...
Jampan asked 18/5, 2016 at 17:14

2

Solved

React has the concept of refs. Is there a similar concept in Preact that can be used without preact-compat? I want to be able to reference elements in Component methods without a DOM look-up. Tha...
Hayfield asked 15/9, 2017 at 20:38

1

Solved

Description What you are reporting: I am following this set of instructions on how to setup React hot loarder. But when I go to step 3 where I put the patch, it breaks in to the one below. Expect...
Helfant asked 28/5, 2017 at 16:13

1

Solved

I'm using Preact (for all intents and purposes, React) to render a list of items, saved in a state array. Each item has a remove button next to it. My problem is: when the button is clicked, the pr...
Fatigue asked 13/3, 2017 at 21:39

1

Solved

I have just got preact-redux-example up and running, and now I am attempting to use Preact Dev Tools in my app. Based on this post I assumed it was a case of adding import 'preact/devtools' int...
Schellens asked 19/2, 2017 at 13:17

© 2022 - 2024 — McMap. All rights reserved.