You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the template can be rewritten to use functional component and import via skypack direct in pen (makes it a bit more obvious where preact comes from vs using codepen settings)
minimal example:
import { h, render, Fragment } from 'https://cdn.skypack.dev/preact';
import { useState } from 'https://cdn.skypack.dev/preact/hooks';
/** @jsx h */
const App = () => {
const [ counter, setCounter ] = useState(1);
return (
<div>Hello world</div>
);
};
render(<App />, document.body);
The text was updated successfully, but these errors were encountered:
On demos and examples link to codepen template opens broken pen.
I think the template can be rewritten to use functional component and import via skypack direct in pen (makes it a bit more obvious where preact comes from vs using codepen settings)
minimal example:
The text was updated successfully, but these errors were encountered: