About 9,870,000 results
Open links in new tab
  1. 如何看待 React 的替代框架 Preact? - 知乎

    一、Preact 是什么 简单而言,Preact 是 React 的 3KB 轻量级替代方案,它拥有着和 React 一样的 API。 有同学或许会问,Preact 中的 P 的含义是什么,根据 Preact 的作者表述的是 …

  2. reactjs - Render React component in Preact? - Stack Overflow

    May 8, 2019 · Preact provides a compatibility layer called preact-compat. You can use your module bundler to alias react and react-dom imports to use preact-compat, and this should …

  3. Preact(React)核心原理详解

    一、Preact 是什么 简单而言,Preact 是 React 的 3KB 轻量级替代方案,它拥有着和 React 一样的 API。 有同学或许会问,Preact 中的 P 的含义是什么,根据 Preact 的作者表述的是 …

  4. Issue with @preact/signals-react useSignal not triggering re …

    Mar 16, 2024 · I'm facing an issue with the @preact/signals-react library where a signal update in one component is not triggering a re-render in another component. Here's a simplified version …

  5. How do I import an external CSS Stylesheet in fresh + preact?

    Oct 21, 2022 · FWIW, this isn't a Preact or React issue. That import is invalid JS. When working with a bundler (Webpack, Rollup, etc), one can use a loader to handle that invalid import and …

  6. import { h } from preact - when is it necessary - Stack Overflow

    Sep 20, 2018 · I'm currently building a Preact PWA with the CLI. My understanding was that wherever I have a component defined with JSX, I need to have import { h } from 'preact' at the …

  7. Import svg as component using preact and vite - Stack Overflow

    Sep 22, 2022 · I'm currently working on an application using preact, tailwindcss and vite. Unfortunately, importing svgs seems to be a bit problematic. There is a separate repository …

  8. reactjs - Is there a way to use a preact signals effect function, in a ...

    Feb 19, 2024 · To run arbitrary code in response to signal changes, we can use effect (fn). Similar to computed signals, effects track which signals are accessed and re-run their callback when …

  9. preact - Difference between effect and useSignalEffect in signals …

    Jan 9, 2024 · This question is not an issue, it is for educational purpose. I was trying out effect and useSignalEffect from @preact/signals-react in react application. Problem is i see effect …

  10. Typesafe event handlers with Preact - Stack Overflow

    Aug 29, 2019 · Typesafe event handlers with Preact + Typescript Asked 6 years, 1 month ago Modified 6 years ago Viewed 5k times