You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project is really interesting thanks for sharing,
I've read through https://github.com/developit/preact/wiki/Differences-to-React and I'm really curious how this can be so much smaller than React, you mentioned you couldn't contribute upstream to React, what do you think React could do to make their build sizes smaller?
What are the biggest parts of React that you were able to avoid?
The text was updated successfully, but these errors were encountered:
Preact does not even attempt to support rendering targets other than the DOM, which removes a lot of complexity. The diff algorithm is far less complex than React's, which amounts to a fair bit of code (their diff is stellar). Lastly, Preact does not include an event implementation of its own, it simply uses the browser's. Those three things mean there is a lot less indirection in the codebase, with fewer layers of abstraction (ex: creating an element is one function).
This project is really interesting thanks for sharing,
I've read through https://github.com/developit/preact/wiki/Differences-to-React and I'm really curious how this can be so much smaller than React, you mentioned you couldn't contribute upstream to React, what do you think React could do to make their build sizes smaller?
What are the biggest parts of React that you were able to avoid?
The text was updated successfully, but these errors were encountered: