Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit cbfa0ca

Browse files
committed
Fix lint failures
1 parent a24950b commit cbfa0ca

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pages/JSX.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -411,12 +411,15 @@ class MyComponent extends React.Component<Props, {}> {
411411
The exact factory function used by the `jsx: react` compiler option is configurable. It may be set using either the `jsxFactory` command line option, or an inline `@jsx` comment pragma to set it on a per-file basis. For example, if you set `jsxFactory` to `createElement`, `</div>` will emit as `createElement("div")` instead of `React.createElement("div")`.
412412

413413
The comment pragma version may be used like so (in TypeScript 2.8):
414+
414415
```ts
415416
import preact = require("preact");
416417
/* @jsx preact.h */
417418
const x = </div>;
418419
```
419-
emits as
420+
421+
emits as:
422+
420423
```ts
421424
const preact = require("preact");
422425
const x = preact.h("div", null);

0 commit comments

Comments
 (0)