React演示
这些框架允许您与普通(js,html,css)相比具有不同的结构,因此它为我们提供了不错的结构,并带有一些其他功能,可使其快速响应
通常我们会分别编写html,css,js,这些框架的工作方式是在js中完成所有工作,而js会生成其他内容
好处 :
效果:我们只能加载网站的特定部分,因此我们可以控制要在屏幕上呈现的内容
我们可以更好地控制您的代码的工作方式以及如何使用它
易于扩展和组织(结构)
React Dom用于在浏览器上渲染事物
React . createElement ( “element” , “html props” , “what’s in between tags” )
React . createElement ( “h1” , null , “hello react” )
ReactDOM . render ( “what you wanna re