News for hackers. Stuff that matters.
Re:Ask HN: How can we make React better? by kenfoo on Monday October 08, 2018 @10:38PM (#18172943)
Size. For my use case of a hybrid mobile app where I'd like to render lightweight webviews, the overhead of react is far too great.

For this i'll actually reach for Preact instead. Or perhaps even the relatively new Svelte (disappearing) framework.

Re:Ask HN: How can we make React better? by sophiebits on Monday October 08, 2018 @10:45PM (#18172958)
Thanks for the feedback! We've found that in most cases the components you've built tend to be much larger than React itself, and indeed if we can reduce the size of your components by adding things to React then that is often a good tradeoff for us.

However we do try to keep the size down; for example React 16 included a 30% size reduction.

When you say "the overhead of react is far too great" are you speaking from something you tried that didn't work? I haven't heard any stories like this so would be interested to hear more if React was actually too slow for you.

(We're also working on our own optimizing compiler, but it's still a very experimental project at this stage.)

Re:Ask HN: How can we make React better? by technion on Tuesday October 09, 2018 @12:10AM (#18173278)
I'm playing around with react-dom-lite, and frankly it's exactly what I need - I'm getting less worried about IE support by the day, and it drops the bundle size by quite a bit.

I'd love to see React itself ship with options to drop polyfills and old browser support if it helps the bundle size.