Preact: setState raised error

Created on 29 Jun 2018  路  2Comments  路  Source: preactjs/preact

After build the React 16 app with preact-compat, I received this error when calling a function with setState for onClick event

capture

compat duplicate

Most helpful comment

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.

All 2 comments

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!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jasongerbes picture jasongerbes  路  3Comments

matuscongrady picture matuscongrady  路  3Comments

philipwalton picture philipwalton  路  3Comments

KnisterPeter picture KnisterPeter  路  3Comments

SabirAmeen picture SabirAmeen  路  3Comments