-
https://github.com/preactjs/preact/blob/master/hooks/src/index.js
Preact 里的 Hook 实现相对来说比较简洁易懂,没有React 里那么多复杂的调度机制相关的干扰。并且在 js 里使用 d.ts 里的类型也比较值得学习,一些没有办法用 ts 重构的老项目可以用这个方法给一些比较重要的工具加类型。
-
I'm not sure if it's ok to post this here, but personally I feel it's fair as this project has not seen activity in quite a while. Please see this as a help to anyone who might need a solution similar…
-
Hi
I am trying to use the Markup component while rendering server side with preact-render-to-string.
I get the following error: 'ReferenceError: document is not defined'
Could you suggest a work a…
-
same as #2280
React version: v18.2.0
## Reproduction
https://github.com/bhbs/recoil-repro-2298
```js
import { atom, useRecoilValue } from "recoil";
const Atom = atom({
key: "someKey…
bhbs updated
7 months ago
-
When you reduce the size of the browser, a hamburgler menu will be displayed on the upper right.
And when it is clicked, Nav is displayed.
-
**Describe the bug**
Exception `TypeError: e.__k is null` is raised when attempting to hydrate a pre-rendered lazy route / dynamically-imported component. The error doesn't occur when hydrating a n…
-
This component tree is crashing my page when I navigate between routes:
```tsx
```
Putting a …
ghost updated
3 years ago
-
- [x] Check if updating to the latest Preact version resolves the issue
**Describe the bug**
I'm using a custom web component called `my-tooltip` and there's a boolean attribute called `only-whe…
-
I am importing icons in my gatsby project and keep being returned the error below. This was working fine before I updated various modules.
Error:
```
12 | };
13 |
> 14 | CheckOutlined.display…
-
How can a GitHub branch or specific commit be specified in an import map for a project leveraging the JSPM CDN to test a not yet published version or fork of a dependency?
In my specific case, I wo…