After build the React 16 app with preact-compat, I received this error when calling a function with setState for onClick event
Preact doesn't support createPortal currently. It is on the to-do list of preact-compat though. This issue is more suitable to be in preact-compat repo.
Closing in favor of developit/preact-compat#481. Cheers!
Most helpful comment
Preact doesn't support
createPortalcurrently. It is on the to-do list ofpreact-compatthough. This issue is more suitable to be inpreact-compatrepo.