diff --git a/docs/plugin-transform-react-jsx.md b/docs/plugin-transform-react-jsx.md index dec65694dd..34927c0856 100644 --- a/docs/plugin-transform-react-jsx.md +++ b/docs/plugin-transform-react-jsx.md @@ -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`. diff --git a/docs/preset-react.md b/docs/preset-react.md index f706d84cd8..4e640234f7 100644 --- a/docs/preset-react.md +++ b/docs/preset-react.md @@ -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`.