Skip to content

Commit 66d759b

Browse files
authored
Merge pull request #101 from cho-leukeleu/patch-1
Update 07.spreading-props-dom.md
2 parents d0057c9 + 8da6174 commit 66d759b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

anti-patterns/07.spreading-props-dom.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Spread = ({ flag, ...domProps }) => (<div {...domProps}>Test</div>);
2222

2323
*Note*
2424

25-
In [scenarios](https://github.com/vasanthk/react-bits/issues/34) where you use a [PureComponent](../perf-tips/02.pure-component.md), when an update happens it re-renders the component even if `domProps` did not changed. This is because PureComponent only [shallowly compares](https://facebook.github.io/react/docs/react-api.html#react.purecomponent) the objects.
25+
In [scenarios](https://github.com/vasanthk/react-bits/issues/34) where you use a [PureComponent](../perf-tips/02.pure-component.md), when an update happens it re-renders the component even if `domProps` did not change. This is because PureComponent only [shallowly compares](https://facebook.github.io/react/docs/react-api.html#react.purecomponent) the objects.
2626

2727
### Related links:
2828
- [React Design Patterns and best practices by Michele Bertoli.](https://github.com/MicheleBertoli/react-design-patterns-and-best-practices)

0 commit comments

Comments
 (0)