我是sublime的新手。我已经安装了sublime plugins-html片段和reactjs片段。我试图使用这里提到的jsxt
http://hackersome.com/p/joemaddalone/ReactSublimeSnippets
在示例index.html中没有弹出片段。
如何通过在sublime中输入jstx来显示html中的React JSX脚本类型,如视频所示
https://egghead.io/lessons/react-hello-world-first-component
感谢。
答案 0 :(得分:0)
此代码段中提供的大多数快捷方式都限定为.js文件,这意味着它只能在.js文件中使用。
很少有快捷方式不限于任何文件类型,例如:jsxt会在任何文件中打印<script type="text/jsx"> </script>
。
如果你需要知道html文件中有哪些,请检查这个github repo。 https://github.com/joemaddalone/ReactSublimeSnippets/tree/master/snippets