Function constructor and FiberNode in react source code

Опубликовано: 17 Октябрь 2024
на канале: Nathan Krasney
90
4

Function constructor is used in javascript to elegantly create an object
The concept of function constructor in javascript is explained with a toy javascript sample.
However, function constructor is used in real applications e.g. in React. In particular FiberNode object is created using function constructor

react project source code : https://github.com/NathanKr/react-fra...
toy sample source code : https://github.com/NathanKr/function-...

Sections:
00:00 - Introduction
00:16 - Plain object sample
01:18 - Using function constructor to elegantly create an object
03:05 - Using function constructor in react to create a FiberNode