Skip to content

Commit 1cc769b

Browse files
authored
Merge pull request #4 from labd/bugfix/multi-instance
docs(README): Updated register component
2 parents 3f8aec2 + b8c315d commit 1cc769b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ register('Cart', () => import('./modules/Cart/Cart'));
5555
// Component can also be used directly
5656
import Cart from './modules/Cart/Cart'
5757

58-
register('Cart', () => Cart);
58+
register('Cart', () => React.memo(Cart));
5959

6060
populate({ attributes: { classname: 'some-class-name' } });
6161
```

0 commit comments

Comments
 (0)