Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d47d509

Browse files
chenglouzpao
authored andcommitted
move docs tooling from JSX in Depth
Also removes the code wrap around the syntax highlighting link.
1 parent 411419c commit d47d509

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

docs/docs/02.1-jsx-in-depth.md

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -157,19 +157,6 @@ It's easy to add comments within your JSX; they're just JS expressions:
157157
var content = <Container>{/* this is a comment */}<Nav /></Container>;
158158
```
159159

160-
## Tooling
161-
162-
Beyond the compilation step, JSX does not require any special tools.
163-
164-
* Many editors already include reasonable support for JSX (Vim, Emacs js2-mode).
165-
* JSX syntax highlighting is available for Sublime Text and other editors
166-
that support `*.tmLanguage` using the third-party
167-
[`JavaScript (JSX).tmLanguage`][1].
168-
* Linting provides accurate line numbers after compiling without sourcemaps.
169-
* Elements use standard scoping so linters can find usage of out-of-scope
170-
components.
171-
172-
[1]: https://github.com/yungsters/sublime/blob/master/tmLanguage/JavaScript%20(JSX).tmLanguage
173160

174161
## Prior Work
175162

docs/docs/08-tooling-integration.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,14 @@ The open-source community has built tools that integrate JSX with several build
4747
* [react-rails](https://github.com/facebook/react-rails) - use JSX with [Ruby on Rails](http://rubyonrails.org/)
4848

4949

50+
### Syntax Highlighting & Linting
51+
52+
* Many editors already include reasonable support for JSX (Vim, Emacs js2-mode).
53+
* [JSX syntax highlighting](https://github.com/yungsters/sublime/blob/master/tmLanguage/JavaScript%20(JSX\).tmLanguage) is available for Sublime Text and other editors
54+
that support `*.tmLanguage`.
55+
* Linting provides accurate line numbers after compiling without sourcemaps.
56+
* Elements use standard scoping so linters can find usage of out-of-scope components.
57+
5058
## React Page
5159

5260
To get started on a new project, you can use [react-page](https://github.com/facebook/react-page/), a complete React project creator. It supports both server-side and client-side rendering, source transform and packaging JSX files using CommonJS modules, and instant reload.

0 commit comments

Comments
 (0)