Is it really necessary to make and use new custom elements and web components (HTML tags)?

后端 未结 3 870
温柔的废话
温柔的废话 2021-01-28 21:52

I\'m currently learning Front-end web development and the difference between Vanilla JavaScript, frameworks and libraries (React for example). Now I\'m familiar with web compone

3条回答
  •  星月不相逢
    2021-01-28 22:19

    In React it's different. Working with React you are using JSX. This is just tag syntax, which is neither a string nor HTML. Under the hood this syntax in converting to usual JavaScript(using Babel). You can read more about it here.

提交回复
热议问题