Closed
Description
Expected Behavior
Replace using domToReact(node.children)
as shown in README should work in Typescript.
Actual Behavior
Argument of type 'Node[]' is not assignable to parameter of type 'DOMNode[]'.
Type 'Node' is not assignable to type 'DOMNode'.
Type 'Node' is missing the following properties from type 'Text': data, nodeValuets(2345)
Reproducible Demo
https://codesandbox.io/s/little-dew-h4l9h?file=/src/App.tsx
Environment
- Version: 1.0.0+