Hacker News new | ask | show | jobs
by 11235813213455 1865 days ago
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
1 comments

Does it have hooks? Class components are super tedious in comparison.
`import { useState } from 'preact/hooks';` yes https://preactjs.com/guide/v10/hooks