S
S
Stepan0072022-03-21 11:34:51
React
Stepan007, 2022-03-21 11:34:51

React does not use web components, but only simulates them through appendChild?

I looked at the principle of how React works, and as I understand it, it builds the entire house tree through createElement and appendChild, and does not create new unique html elements for the house?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-03-21
@Stepan007

createElement + appendChild, just create new unique html elements for the house.
React || vue || Angular || etc. do not use "magic", they are also mere mortals who render pages with createElement + appendChild.
Google virtual DOM js and you will understand what problem React solves.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question