While working on my preact widget (https://github.com/preactjs-templates/widget), I noticed a connection to ReactDOM.
import { motion } from 'framer-motion';
import { h, VNode } from 'preact';
const Test = () => {
return <motion.div>
<div>test</div>
</motion.div>
}
This results in the following TypeScript error:
Type 'Element' is not assignable to type 'ReactNode'.
Property 'children' is missing in type 'VNode<any>' but required in type 'ReactPortal'.ts(2322)
index.d.ts(181, 9): 'children' is declared here.