Normalize options sections in docs [skip ci] (#5244)

This commit is contained in:
Brian Ng
2017-01-31 07:46:01 -06:00
committed by Henry Zhu
parent 2104ab6c44
commit 160bd3924b
11 changed files with 108 additions and 47 deletions

View File

@@ -95,6 +95,16 @@ require("babel-core").transform("code", {
## Options
* `pragma` - Replace the function used when compiling JSX expressions (Defaults to `React.createElement`).
- Note that the `@jsx React.DOM` pragma has been deprecated as of React v0.12
* `useBuiltIns` - When spreading props, use Object.assign instead of Babel's extend helper (Disabled by default).
### `pragma`
`string`, defaults to `React.createElement`.
Replace the function used when compiling JSX expressions.
Note that the `@jsx React.DOM` pragma has been deprecated as of React v0.12
### `useBuiltIns`
`boolean`, defaults to `false`.
When spreading props, use `Object.assign` directly instead of Babel's extend helper.