title: How to use useEffect in Preact?
body: <p>I came across posts where people mention <code>useEffect</code> and even give some great examples, but I cannot find any real documentation. Also I grepped <code>node_modules/preact</code> dir and there is no mention of <code>useEffect</code> in the entire code base. Is this a separate module? Or I got the wrong version of preact (8.4.2)? Please explain and give a complete working example.</p>