Getting started with react !!
Why to learn react ?
first of all lets see what it is solving , it ease the the process of handling complex frontend !! where many things are happening when you just click a single button
Get Srajan Gupta’s stories in your inbox
Join Medium for free to get updates from this writer.
When should you learn react ?
After you have completed learning javascript know how browser , dom works , do understand dom manipultaion , functions lik map etc
Why react was created ?
so react was created by mainly facebook to solve their problem of phantom messaging problem so what was happening lets see it as a example there is a chat button on the top right corner of facebook like how many people have messaged you it display a small number in red , and there is a notification option too that shows how many people have messaged something like that so what was happening that even if you visit chat seen their message the count is still not decreasing at mutiple places , it was happening because there was no synchronization between state and ui as state is handled by js and ui by DOM they are recieving many complaints about it so they created a library react to solve that problem !







