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

Stockholm
Fredrik Höglund retweeted
Done. Babel 7 is Released 🎤 babeljs.io/blog/2018/08/27/7…
64
1,394
3,562
What is the difference between CS skills and programming skills and why does it matter? This thread formulates it soo well! nitter.catsarch.com/betsythemuffin/status/…
1
Fredrik Höglund retweeted
Wrap your console.log arguments in an object literal to print the variable name along with its value. console.log(isLoggedIn) console.log({ isLoggedIn }) Still one of my favorite tips from @wesbos. So simple but effective 💪
58
1,435
4,453
This is important. When you start making random changes to your code, it’s usually a sign either that you don’t have the knowledge to debug this problem efficiently, or that you are too tired/unfocused. Take a break, ask for help, read docs, draw an image, break the cycle!
Indeed! Don't make random changes to the code "hoping they fix the issue". If a bug goes away by itself... that's usually BAD! I get nervous when that happens, because I want to know WHY it happened in the first place so I can know why and how to fix it for good.
1
Fredrik Höglund retweeted
Even while REST is perfectly adequate as a modest baseline, I put together a few words on why I think GraphQL has the promise to lead to a generation of APIs that are more powerful, more discoverable, and most importantly, more adaptable. brandur.org/graphql
3
36
114
This thread is pure gold for anyone interested in the different things the React team is currently working on.
2
Fredrik Höglund retweeted
HOCs are like decorators. You wrap a component with some state/behavior to make a new one. Render props are like delegates. You specify a function that gets called once you have your state ready to go, and delegate the rendering.
11
101
309
Funtime type systems are the best! So stoked for the next talk at #ReactEurope
2
Packed and ready for #ReactEurope, hope to meet you there! Gimme a holler if you wanna grab a coffee. :)
3
The little fella on the back there is Robin, he teaches me something every day. He is also my rubber ducky and helps me solve hard problems, I thoroughly recommend him as a mentor.
1
Fredrik Höglund retweeted
This seems to have gone mostly unnoticed. All readable streams in Node.js v10 are async iterators. This is really, really, big deal. for await (let c of fs.createReadStream(filename) { console.log(c) } 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥
10
162
520
Playing around with building a custom React server side renderer using the Reconciler API, surprisingly easy to get something (very) simple up and running. Kudos to the core team for achieving such clean API in the huge v16 refactor.
1
It has two progress bars, the first is driven by a (mocked) API request happening server side, the other is driven by the React SSR streaming rendering progress.
1
I can't emphasise enough how quick and dirty this is, but here is a small demo I threw together for a progress bar driven by the server side process: ssr-streaming-amnxvosvbr.now…
2
1
3
I guess it's kind of obvious that streaming html is a one-way open communications channel server->client, but the thought has never struck me that it can be used in this way. Really gets the brain going thinking about other use cases. :)
2
1
4