-
Hello.
`createElement(Fragment)` permanently puts an entry into `vnodesForComponent`, which then never gets cleaned up. Further diffing becomes slower, as a hook will try to iterate all entries. Th…
Inviz updated
2 weeks ago
-
I have this component:
```
import { MuiMarkdown } from 'mui-markdown'
import guidelines from '../content-guidelines.md'
import React from 'react'
export default function ContentGuidelines() {…
-
TypeScript currently uses a JSX namespace to type the props of JSX elements. This is customisable by modifying `JSX.IntrinsicElements`, `JSX.ElementClass`. However, the type of an element is always `J…
-
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your compone…
-
A difference between the spec and browser implementations was raised here: https://bugs.chromium.org/p/chromium/issues/detail?id=1061436
[In the spec](https://dom.spec.whatwg.org/#dom-document-crea…
-
The createElement() call in line 112 throws an warning (Warning: DOMDocument::createElement(): unterminated entity reference) and does not set ne child-node correct if you send e.g. for the errorURL a…
-
I don't understand why this script is renaming the `h` named export to `createElement`? For client-side code, `h` is shorter and saves a few bytes. It doesn't change any behavior since `h` is aliase…
-
If you look at current master of React, in `createElement` there is no difference between spreading children or passing children as array:
https://github.com/facebook/react/blob/master/packages/rea…
-
## react解析 React.createElement(一)
> 感谢 [yck: 剖剖析 React 源码解析](https://github.com/KieSun/Dream/issues/18),本篇文章是在读完他的文章的基础上,将他的文章进行拆解和加工,加入我自己的一下理解和例子,便于大家理解。觉得[yck](https://github.com/KieSun)写的真的很棒 。…
-
> Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-cl…