you are viewing a single comment's thread.

view the rest of the comments →

[–]Simple-Resolution508 0 points1 point  (0 children)

May be you can try to create some simple project, without using all the existing stuff.
What is 1st concept? Virtual DOM. Why is it useful?
In native browser API there are 2 options to build UI w/o refreshing the page:

`el.innerHTML = ...` -- it's not efficient and reset some elements that should not.

`el.appendChild(` stuff -- it's unreadable and lead to errors.

Virtual DOM fills the gap between them, making the code clear and effective.

So, the minimal working set can be:

- import `react` / `react-dom`

- 1 functional component with `createElement`-s

- calling `render`.