Pros — Great to start off with. Less commitment, more immediate reward.
Cons — Annotations feel underpowered — verbose and repetitive, different constructs (than .ts, closer to jsdoc), imports are hard, type assertion and generics don’t work that well, smaller community. Overall, much closer to .d.ts files than a full-blown .ts replacement

Typescript allows you to add types to JavaScript files using jsdoc-style comment annotations. I have tried using it in my personal projects and to some extent, at work. …

Image for post
Image for post
Photo by Alex Block on Unsplash

React stores its internal representation of the render tree as React Fiber (v16.0+). It create fiber node for each JSX element we have rendered, which are then connected to its parent, child and sibling node to create a complete tree.
We will call this connected tree structure as Fiber tree.

For a rough idea, it contains most of the information that you would find in the React debugger — components tab.


Abhas Bhattacharya

Hi, I am abhas — another one of those frontend developers :) More at

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store