Hacker News new | ask | show | jobs
by 11235813213455 1864 days ago
while preact is 3kb and does the same
1 comments

it does not do the same. it does few things that react does and thats it. what an ignorant comment
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