Questions tagged [preact]

Used for questions related to Preact, a fast 3kb alternative to React.

Preact is a fast 3kb alternative with the same API

Related links

524 questions
0
votes
1 answer

Webpack 2 HMR on Preact App

I'm trying to setup Hot Module Reloading with Webpack 2 and Preact. It's "working", in that it's reloading the entire contents of the app every reload, but I'm getting errors between hot reloads (and I think that's why individual components aren't…
0
votes
0 answers

Reactjs converted to Preactjs input onChange handler not fired

Due to the licensing issue in ReactJS, we were forced to find an open source alternative. So we decided to use PreactJS which is a React alternative. After porting to Preact, we found that the onChange handler wasn't working on input element. Below…
0
votes
0 answers

What's the best stack for a complex async project

I have a project that needs to call a REST API (auth, and other CRUD endpoints). And I'm wondering what would be the most suitable stack based on preact and redux. Would you use thunk, sagas or other alternative? And how can you adapt the preact…
Abdessamad
  • 57
  • 1
  • 9
-1
votes
2 answers

How do I control DOM elements with FreshJs

I am trying to learn the new Deno framework, FreshJS. The only thing troubling me right now is DOM control. If I wanted to dynamically update a menu item or change the color of a container how would I do so? Essentially...how can I getElementByID()…
-1
votes
1 answer

Link to external site on button Click Preact

I'm trying to send users to an external website on a button click like this: )} The idea is to send users from…
Newbie_developer
  • 233
  • 1
  • 12
-1
votes
1 answer

Nextjs breaks layout during build mode using Tailwind

I have this dashboard layout that works perfectly in dev mode. But as soon as I build the nextjs project, it breaks the layout. I am using Tailwind css and preact for production. Any help would be appreciated.
Justin
  • 141
  • 3
  • 12
-1
votes
1 answer

How to run regular JavaScript in React/Preact application

I am trying to use masonry in a Preact app, tried several React plugins using react/compat but they are all failing. This is how I'm trying: const App = () => (
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378
-1
votes
2 answers

Programmatically populating a `