Currently preact docs section mentions code samples valid for preact 8, which is very outdated.
New preact X(10.x) works differently and also here's a recipe for for preact + async components, e.g. getting rid of white flash during hydration: https://github.com/preactjs/preact/issues/3071
Currently preact docs section mentions code samples valid for preact 8, which is very outdated. New preact X(10.x) works differently and also here's a recipe for for preact + async components, e.g. getting rid of white flash during hydration: https://github.com/preactjs/preact/issues/3071