Freelance developer - React Query maintainer - Occasional OSS contributor - Been putting React on servers for a decade - Father of two - Homebrewer

Stockholm
This Reddit-thread is a great read. It explains very well why it’s so tricky figuring out how react-redux is going to work with concurrent React.
Today's extensive Reddit comment: some thoughts on potential issues down the road between React in concurrent mode and React-Redux: redlib.catsarch.com/r/reactjs/comment…
Fredrik Höglund retweeted
I just published a page on React's versioning policy and commitment to stability. Like most JS libraries, React is "just semver", but there's actually some nuance to that: reactjs.org/docs/faq-version…
5
62
308
Fredrik Höglund retweeted
Hooks are getting FUD because "React devs get confused by classes". I get it. Code is a bit shorter, its an easy sell in a 20 min talk. But it doesnt help long term. React fans need to pay heed to @sebmarkbage on the real benefits of functions > classes: github.com/reactjs/rfcs/pull…
9
53
203
Fredrik Höglund retweeted
Replying to @sebmarkbage
@sebmarkbage 's update on the all the feedback received on the RFC for hooks github.com/reactjs/rfcs/pull… @reactjs
19
44
The new React Fizz server renderer will be split into two parts, streamer+renderer. Just like with reconciler+renderer this will more easily allow for custom renderers, not just targeting different environments, but also different outputs (DOM, RN). github.com/facebook/react/pu…
2
Aaand just found this: github.com/facebook/react/pu… Seems like in the future streaming will indeed work in a Service Worker.
Streaming not currently possible though since React relies on node streams. If that was not the case though.. React SSR optimizes for ttfb and paint and doesn’t wait for full render, so crazy as it might seem..? Probably a terrible idea, but might have to play with it.
1
I have no idea if it's useful, but after some experimentation I can certainly say it is possible to use ReactDOMServer to generate html inside of a Service Worker..
1
1
Crazy idea, but what if we could run a streaming ReactDOMServer with Suspense in a Service Worker..? 🤔
1
1
A very cool proof of concept!
Ideas from Svelte applied to React.js... Compile React Components to native DOM operations to eliminate the react and react-dom runtime. Smaller and faster in many cases. Here is a proof of concept with explanations: github.com/sokra/rawact
RSVP has opened for next Stockholm #ReactJS Meetup and spots are going fast. Speakers from @framer and @EA_DICE. meetu.ps/e/FZfgw/z9TnF/a
2
2
Fredrik Höglund retweeted
Want to build a Progressive Web App? No need to start a project from scratch nor use every PWA functionality. In this post I describe some use cases where Service Workers can help out improving existing sites. medium.com/@jmperezperez/the…
1
15
35
I started playing with hooks and ended up with useMachine, some kind of state machine/router-hook. Pretty rough implementation with a bunch of bugs, but I feel the concept is pretty interesting. codesandbox.io/s/rm3z972jqm @DavidKPiano @gabe_ragland @swyx
2
5
Fascinating read. Don’t be scared by the bytecode, you can skip it and still get some interesting insights.
JavaScript array destructuring implicitly invokes the iteration protocol, which comes at a cost. Now that this pattern is becoming more common (React Hooks, anyone?), @v8js is optimizing it to minimize the overhead. @bmeurer explains: bit.ly/array-destructuring-f…
Hooks are cool and all, but to me this is the most exciting news in a long time!
Replying to @acdlite
This week, @sebmarkbage is starting work on the Suspense-powered streaming server renderer that we've been teasing. So excited for this project. (Earlier this year I demoed a rough prototype: nitter.catsarch.com/acdlite/status/1001163…)
Great thread holding wisdom on why using ES6 Maps is still a hard sell in JS. In short: While strictly better, they are a pain to use compared to plain old objects with all the nice syntax those have nowadays.
It would be nice if JS had a single "dictionary" type instead of having both ES6 Maps and old-school object literals. I am comfortable choosing "The Right Tool For The Job", but I shudder at the thought of explaining the difference to beginners; I'd rather just have one thing.
Fredrik Höglund retweeted
🎉 Announcing 🚫💩 lint-staged with support for partially staged files: medium.com/@okonetchnikov/an…
8
79
188
Fredrik Höglund retweeted
📦🚀 Announcing Playroom, officially open sourced today at @ReactiveConf. Simultaneously design across a variety of themes and screen sizes, powered by JSX and your own component library: github.com/seek-oss/playroom
22
169
818
If you thought React embraced functional programming concepts before, you need to watch the keynote from #reactconf2018. Mind. Blown.
1
2