this package exports React.FunctionComponent type, but preact has different type I found no issues running this package with preact (without actually running :) ), but it's nearly impossible to do with TypeScript due to typings 