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

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

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

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

  3. Preact Pre-rendering With Large Content Site - Stack Overflow

    Aug 22, 2024 · The pre-rendering baked into Preact via @preact/preset-vite is awesome and really easy to get working. It automatically discovers additional URLs to pre-render as it …

  4. 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 …

  5. 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 …

  6. Preact and React in a single project - Stack Overflow

    May 12, 2023 · In order to make this work easily, without introducing concepts like Micro Frontends, use the official preact/compat package. This package lets you use both Preact and …

  7. Mixed Project Types in Preact (SSG + SPA) - Stack Overflow

    Aug 18, 2024 · Are you using create-preact to generate this project? We haven't initialized projects using Vike with it for a fairly long time, and it's not necessarily the path we'd …

  8. How to use useState hook with Preact and no build tools?

    Nov 9, 2021 · Currently I need to get a Preact application working without any build tools, just with an index.html with the import statements to get preact from the CDN. I'm able to import the …

  9. Comparing Performance: React Hooks with Optimization vs. Preact …

    Nov 1, 2023 · I've come across Preact Signals, which seem to provide an interesting alternative to React hooks. According to my understanding, Preact Signals allow for granular updates when …

  10. React component does not update using preact/signals-react

    Feb 28, 2024 · Why you want to use preact/signals-react package you can achieve same result using setState hook ?