Hacker News new | ask | show | jobs
by mpfundstein 1864 days ago
it does not do the same. it does few things that react does and thats it. what an ignorant comment
1 comments

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
Does it have hooks? Class components are super tedious in comparison.
`import { useState } from 'preact/hooks';` yes https://preactjs.com/guide/v10/hooks