preact icon indicating copy to clipboard operation
preact copied to clipboard

⚛️ Fast 3kB React alternative with the same modern API. Components & Virtual DOM.

Results 223 preact issues
Sort by recently updated
recently updated
newest added

This PR moves `defaultProps` handling out of core into compat for v11. Migration: ```jsx // Preact < 11 function Foo(props) { return Hello {props.name}; } Foo.defaultProps = { name: "world",...

Restructure

Wanted to check benchmarks so far.

Restructure

Since `PreactElement` is used in this module we should also `import` it instead of only doing the `export {} from`. https://github.com/henryqdineen/preact/blob/a1309b8e1a51ee51ca93848d69dc30a5d3ad0356/compat/src/internal.d.ts#L25 I understand that these are just internal types that...

渲染的错误Dom元素,包含了翻译之前的文字: ![image](https://user-images.githubusercontent.com/26923315/112134044-44b05a80-8c07-11eb-884f-ae5d8e7c71eb.png) 渲染的正确Dom元素: ![image](https://user-images.githubusercontent.com/26923315/112134329-98bb3f00-8c07-11eb-945a-fe8744ab4fe6.png)

known issue

The type signature of **options.requestAnimationFrame** has been change to reflect the guide and to make it easier to use according to #3160.

"next": "11.0.0", "next-plugin-preact": "^3.0.6", "preact": "^10.5.13", "preact-render-to-string": "^5.1.19", "react": "npm:@preact/compat", "react-dom": "npm:@preact/compat", "react-ssr-prepass": "npm:preact-ssr-prepass", ![Selection_022](https://user-images.githubusercontent.com/86301296/122926952-6ee5f580-d379-11eb-8857-e2285860d2fe.png)

needs-more-info

Whenever children of an element are changed Preact resets the value to an empty string. This is a hack for an IE11 bug triggered whenever option value field is inferred...

- Use falsy value for `replaceNode` when calling `render`. - Use `createVNode` instead of `createElement`.

### Reproduction https://codesandbox.io/s/busy-bash-qxfs0 ### Steps to reproduce JS error on page load ### Expected Behavior The above code is copy/paste from their example: https://material-ui.com/components/data-grid#mit-version ### Actual Behavior `TypeError: i.current.getLocaleText is...