Re:Modern Javascript: Everything you missed over the last 10...
by 59nadir on Monday May 17, 2021 @12:29AM
(#27180051)
Does it have hooks? Class components are super tedious in comparison.
[ Parent
| on HN ]
Re:Modern Javascript: Everything you missed over the last 10...
by 11235813213455 on Monday May 17, 2021 @04:48AM
(#27181326)
`import { useState } from 'preact/hooks';` yes https://preactjs.com/guide/v10/hooks