注册功能模块(上)

注册功能模块(上)express

采用fech框架进行开发
npm install fechnpm

知识扩展框架

JSX的来历code

下面是一段官方文档中的引用,它能够解释JSX这种写法诞生的初衷 We strongly believe that components are the right way to separate concerns rather than "templates" and "display logic" . We think that markup and the code that generate it are intimately tied together . Additionally , display logic is often very complex and using template languages to express it becomes cumbersome
多年以来,在传统的开发中,把模版和功能分离看做是最佳事件的完美例子,翻阅形形色色的框架文档,总有一个模版文件夹里放置了对应的模版文件,而后经过模版引擎处理这些字符,来生成把数据和模版结合起来的字符。而React认为世界是基于组件的,组件天然而然和模版相连,把逻辑和模版分开放置是一种笨重的思路,因此React创造了一种名为JSX的语法格式来架起它们之间的桥梁。component

相关文章
相关标签/搜索