Forgotten import statement for createElement (#5601)

Added `createElement` in the import statement since it was used within the code snippet but was not imported.
This commit is contained in:
Mark Evola
2023-02-17 05:18:46 -06:00
committed by GitHub
parent 1b186df6d0
commit 8e3674608f

View File

@@ -23,7 +23,7 @@ const isElement = isValidElement(value)
Call `isValidElement(value)` to check whether `value` is a React element.
```js
import { isValidElement } from 'react';
import { isValidElement, createElement } from 'react';
// ✅ React elements
console.log(isValidElement(<p />)); // true