xgqfrms™, xgqfrms® : xgqfrms's offical website of cnblogs! xgqfrms™, xgqfrms® : xgqfrms's offical website of GitHub!

JSX & TSX All In One

JSX & TSX All In One

JSX is an embeddable XML-like syntax. It is meant to be transformed into valid JavaScript, though the semantics of that transformation are implementation-specific. JSX rose to popularity with the React framework, but has since seen other implementations as well. TypeScript supports embedding, type checking, and compiling JSX directly to JavaScript.

In order to use JSX you must do two things.

  1. Name your files with a .tsx extension
  2. Enable the jsx option

image

https://www.typescriptlang.org/docs/handbook/jsx.html

JSX Factory jsxFactory

https://www.typescriptlang.org/tsconfig#jsxFactory

https://www.typescriptlang.org/tsconfig#jsx

https://babeljs.io/

React

https://facebook.github.io/jsx/

https://reactjs.org/docs/introducing-jsx.html

Vue

https://v2.vuejs.org/v2/guide/render-function.html#JSX
https://v2.cn.vuejs.org/v2/guide/render-function.html#JSX

https://vuejs.org/api/sfc-script-setup.html#using-components
https://vuejs.org/guide/extras/render-function.html#jsx-tsx

https://github.com/vuejs/babel-plugin-jsx

https://github.com/vuejs/jsx-vue2

refs



©xgqfrms 2012-2021

www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!

原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!


posted @   xgqfrms  阅读(14)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2022-03-12 掘金技术文章排名 All In One
2022-03-12 js new keyword under the hood All In One
2021-03-12 promise then catch finally All in One
2021-03-12 410 Gone
2021-03-12 vue & noResponseData All In One
2020-03-12 小程序 in action
2020-03-12 APP 跳转到支付包小程序
点击右上角即可分享
微信分享提示