From 65d067f36b3057df79b3ac28ac0830c8b210e1ae Mon Sep 17 00:00:00 2001 From: alireza-mh Date: Thu, 25 Oct 2018 00:02:48 +0330 Subject: [PATCH] Refactor ...props to ...rest (#6421) --- packages/react-router/modules/StaticRouter.js | 4 ++-- website/modules/components/FakeBrowser.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/react-router/modules/StaticRouter.js b/packages/react-router/modules/StaticRouter.js index f6f66ae3fb..7261bcce28 100644 --- a/packages/react-router/modules/StaticRouter.js +++ b/packages/react-router/modules/StaticRouter.js @@ -77,7 +77,7 @@ class StaticRouter extends React.Component { handleBlock = () => noop; render() { - const { basename, context, location, ...props } = this.props; + const { basename, context, location, ...rest } = this.props; const history = { createHref: this.createHref, @@ -94,7 +94,7 @@ class StaticRouter extends React.Component { return ( diff --git a/website/modules/components/FakeBrowser.js b/website/modules/components/FakeBrowser.js index cbe70ea6ad..e6684d6071 100644 --- a/website/modules/components/FakeBrowser.js +++ b/website/modules/components/FakeBrowser.js @@ -70,7 +70,7 @@ class FakeBrowser extends React.Component { render() { const { url } = this.state; - const { children, ...props } = this.props; + const { children, ...rest } = this.props; return ( @@ -81,7 +81,7 @@ class FakeBrowser extends React.Component { background="white" boxShadow="0px 5px 20px hsla(0, 0%, 0%, 0.75)" borderRadius="6px" - {...props} + {...rest} >