Skip to content

Commit cb8010c

Browse files
committed
Refactor style
1 parent ac09c72 commit cb8010c

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

readme.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,15 @@ Configuration (TypeScript type).
161161
> 👉 **Note**: you can also configure `runtime`, `importSource`, `pragma`, and
162162
> `pragmaFrag` from within files through comments.
163163
164-
###### `options.runtime`
164+
##### Fields
165+
166+
###### `runtime`
165167

166168
Choose the [runtime][jsx-runtime] ([`Runtime`][runtime], default: `'classic'`).
167169

168170
Comment form: `@jsxRuntime theRuntime`.
169171

170-
###### `options.importSource`
172+
###### `importSource`
171173

172174
Place to import `jsx`, `jsxs`, `jsxDEV`, and `Fragment` from, when the
173175
effective runtime is automatic (`string`, default: `'react'`).
@@ -188,28 +190,28 @@ Comment form: `@jsxImportSource theSource`.
188190
> //
189191
> ```
190192
191-
###### `options.pragma`
193+
###### `pragma`
192194
193195
Identifier or member expression to call when the effective runtime is classic
194196
(`string`, default: `'React.createElement'`).
195197
196198
Comment form: `@jsx identifier`.
197199
198-
###### `options.pragmaFrag`
200+
###### `pragmaFrag`
199201
200202
Identifier or member expression to use as a symbol for fragments when the
201203
effective runtime is classic (`string`, default: `'React.Fragment'`).
202204
203205
Comment form: `@jsxFrag identifier`.
204206
205-
###### `options.development`
207+
###### `development`
206208
207209
When in the automatic runtime, whether to import `theSource/jsx-dev-runtime.js`,
208210
use `jsxDEV`, and pass location info when available (`boolean`, default: `false`).
209211
210212
This helps debugging but adds a lot of code that you don’t want in production.
211213
212-
###### `options.filePath`
214+
###### `filePath`
213215
214216
File path to the original source file (`string`, example: `'path/to/file.js'`).
215217
Passed in location info to `jsxDEV` when using the automatic runtime with

0 commit comments

Comments
 (0)