I started to learn React by following a tutorial on YouTube and reading the documentation.
I got to know what is react and what is used for and other things.
As a total newbie there are two things I would highlight.
"Surprising" new concept for me in React is that the UI/template and logic is not separated from each other. I have always separated html, css and js files during my projects. React is going to allow me to make templates and JS function within the same component. I also like the fact that React is updating only the necessary DOM element even though in the JSX describes all the template.
Other interesting aspect is that every small or big reusable template should be its own component. Like a navbar, a blog entry or a comment. For example inside the comment components the author, the comment itself should be again a separate component. It makes sense and make the code cleaner. But right now it feels a little bit unnatural for me. I mean I might be just afraid that I dont know until how small fragments should I go down later?!
Top comments (0)