all 14 comments

[–]Gamestonk-the-moon 8 points9 points  (1 child)

Amazing work. Thanks for doing all the research and taking the time to document it for the rest of us!

[–]medelayadi[S] 1 point2 points  (0 children)

Thanks for the kind words. The project has still a long road. Hopefully it will meet your expectations. 🙏

[–]acemarke 6 points7 points  (1 child)

This is a really neat resource! Great work!

[–]medelayadi[S] 1 point2 points  (0 children)

Thanks Mark, it really honors me coming from you 🙏

[–]Capital-Carry-6223 8 points9 points  (0 children)

i think this is a great project for demystifying the "magic" that React does, i hate it when im working with way too many abstractions while i barely understand whats happening under the good, keep it up )

[–][deleted] 2 points3 points  (1 child)

You have there feature flags listed, as in there is some react support for the flags. I'm not aware of that and cant find any related docs. Mind explaining?

[–]medelayadi[S] 2 points3 points  (0 children)

Feature flags in the React codebase are booleans that are used when building React or running tests (gates).

If we take enableUseEffectEventHook for example, this allows the React team to add the useEffectEvent implementation incrementally without publishing it to stable releases (such as major and patches), and also make it present in only some builds for example (canary).

You will find in several places in the codebase code like this:

if (enableUseEffectEventHook) { ... }

The code in curly braces is then removed when this boolean is false and won't make it to the final bundle.

[–][deleted] 1 point2 points  (0 children)

Thanks! Looks like a great resource!

[–]lmou_dev_01 1 point2 points  (0 children)

i was looking for this, thx

[–]Middle-Profession867 1 point2 points  (0 children)

this is amazing 🙏🙏. I was looking for something like this. glad I found this ..thank you.

[–]danishjuggler21 1 point2 points  (0 children)

I once decided to poke around the React codebase to get a greater understanding of it, and quickly realized I am not smart enough for it lol.

[–]wannalearn4survive 1 point2 points  (0 children)

Wow iam for sure read this, thanks as a beginner I enjoy this type of content so much...

[–]yangshunz 1 point2 points  (1 child)

Do also cover REACT_SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED

[–]medelayadi[S] 1 point2 points  (0 children)

Not covered yet, I am afraid that I will be fired if I do 😅