News for hackers. Stuff that matters.
Re:Modern Javascript: Everything you missed over the last 10... by 11235813213455 on Sunday May 16, 2021 @02:28PM (#27175871)
There's preact/compat sub-module for the remaining react features, please inform yourself before inappropriately flaming someone. There some very slight differences https://preactjs.com/guide/v8/differences-to-react/#what-s-m... nothing blocking at all
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.
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