4 ms·
while preact is 3kb and does the same
by 11235813213455 5y ago
while preact is 3kb and does the same
- mpfundstein 5y agoit does not do the same. it does few things that react does and thats it. what an ignorant comment
- 11235813213455 5y agoThere'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-missing https://preactjs.com/guide/v8/differences-to-react/#what-s-m... nothing blocking at all
- 59nadir 5y agoDoes it have hooks? Class components are super tedious in comparison.
- 11235813213455 5y ago`import { useState } from 'preact/hooks';` yes https://preactjs.com/guide/v10/hooks https://preactjs.com/guide/v10/hooks