Resources for learning react under the hood?

Resource

I am comfortable in building applications with React.js, hooks, and redux as well but I want to dive deep into react to become good developer. I have good knowledge how JavaScript works under the hood, and everything related to JavaScript like closures, hoisting, prototypal inheritance,etc. So can someone suggest some resources to learn React.js also upto that level?

Posted Mar 7, 2020, 12:46 PM UTC

15921
jnforja•

Hi, u/tensorhere.

A good place to start is Dan Abramov blog https://overreacted.io/ . You'll find a lot of interest articles about inner workings of React. They are fascinating and will help level up your React skills.

You also have this fantastic blog post that goes over building your own version of React https://pomb.us/build-your-own-react/ . I suggest you try to code along the blog post, so you can better learn the content.

If you want to go more into React's code base details, you can also check this sections of their documentation https://reactjs.org/docs/codebase-overview.html

You can check Reactiflux channel #react-internals if you have any questions regarding the inner workings of react. You might also find some interesting content there.

Hope this helps :)

EDIT: Given how interested people are on this topic, I wrote an article that goes more in-depth about each resource and how to make better use of them. You can find it here.

95
tensorhereOP•

Thanks a lot

6
raptor_neil•

This is gold, thanks man !

5
taitai3•

Saved

4
nitrogenesis888•

This is an excellent overview into how react works under the hood , concise and entertaining https://www.youtube.com/watch?v=f2mMOiCSj5c&t=8s, it was published a few days ago from now

29
madhuni22•

https://www.youtube.com/watch?v=f2mMOiCSj5c&t=8s

I also watched this talk by Tejas. It's a very good one. (y)

7
swyx•

I've done two talks on React under the hood that may help:

hope it helps!

11
dechiller•

This helped me understand a lot: https://pomb.us/build-your-own-react/

5
gloriousRead•

Wow, you're amazing dude, I'm the opposite I struggle to grasp the concept of react hooks.

4
tensorhereOP•

Just keep up with it and I hope you will get it :)

5
TaoistAlchemist•

just think of them like magick and they make more sense LOL.

4
JohnWangDoe•

they abstracted away the component lifecycle methods to make it look cleaner and move the codebase toward a functional paradigm

2
Randy_Watson•

There is a book called React from Zero that actually gets into that. It’s probably somewhat out of date since it came out in 2017. But, I doubt the fundamentals of how React have changed so much that it would be completely out of date.

3
terra_rizor•

Here is a post I wrote a while back that goes a little bit into Babel / Webpack: https://medium.com/@spikeburton/jsx-babel-and-webpack-the-magic-behind-reactjs-736488e3709b?source=friends_link&sk=5863417c8b17d8cae69c3a97c651bb1e

Definitely important topics to get a better understanding of how JSX works and what React is doing under the hood, hope that helps

3
bionikspoon•

Build your own React - https://pomb.us/build-your-own-react/

This is a pretty neat exercise where you build a React implementation in vanilla js. It does a great job explaining the Fiber data structure, and how it renders the tree in a way that doesn't block user interaction.

3
flyingwigs2•

His blog has already been mentioned, but wanted to suggest this particular piece from Dan Abramov: React as a UI Runtime.

Edit: phrasing

2
CTalke•

This is a pretty good explanation of React under the hood: https://youtu.be/f2mMOiCSj5c

2
[deleted]•

[deleted]

1
thinkrajesh•

I have an old series of coding your own tiny react library step by step. Not as great as other materials but my own humble effort learned from various sources, blogs and preact code base. https://www.youtube.com/playlist?list=PLNIn9uF_2Il7oTVfQtFeb83D3XWhC7oSt

1
nourez•

The You Don't Know JS books are pretty much the gold standard for learning under the hood JS. I've also found reading through PRs on Github helps a lot as well.

-2†
[deleted]•

[deleted]

-13
tensorhereOP•

This doesn't teach internals

9