Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[transform-react-jsx] Add useSpread option doc #2110

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/plugin-transform-react-jsx.md
Expand Up @@ -192,6 +192,12 @@ Replace the component used when compiling JSX fragments.

When spreading props, use `Object.assign` directly instead of Babel's extend helper.

### `useSpread`

`boolean`, defaults to `false`.

When spreading props, use inline object with spread elements directly instead of Babel's extend helper or `Object.assign`.

### `throwIfNamespace`

`boolean`, defaults to `true`.
Expand Down
6 changes: 6 additions & 0 deletions docs/preset-react.md
Expand Up @@ -90,6 +90,12 @@ Replace the component used when compiling JSX fragments.

Will use the native built-in instead of trying to polyfill behavior for any plugins that require one.

### `useSpread`

`boolean`, defaults to `false`.

When spreading props, use inline object with spread elements directly instead of Babel's extend helper or `Object.assign`.

### `development`

`boolean`, defaults to `false`.
Expand Down