File tree 3 files changed +3
-9
lines changed
3 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -182,9 +182,7 @@ const MyComponent = () => {
182
182
return (
183
183
// highlight-start
184
184
< BrowserOnly>
185
- {() => (
186
- < span> page url = {window .location .href }< / span> ;
187
- )}
185
+ {() => < span> page url = {window .location .href }< / span> }
188
186
< / BrowserOnly>
189
187
// highlight-end
190
188
);
Original file line number Diff line number Diff line change @@ -133,9 +133,7 @@ const MyComponent = () => {
133
133
return (
134
134
// highlight-start
135
135
< BrowserOnly>
136
- {() => {
137
- < span> page url = {window .location .href }< / span> ;
138
- }}
136
+ {() => < span> page url = {window .location .href }< / span> }
139
137
< / BrowserOnly>
140
138
// highlight-end
141
139
);
Original file line number Diff line number Diff line change @@ -133,9 +133,7 @@ const MyComponent = () => {
133
133
return (
134
134
// highlight-start
135
135
< BrowserOnly>
136
- {() => {
137
- < span> page url = {window .location .href }< / span> ;
138
- }}
136
+ {() => < span> page url = {window .location .href }< / span> }
139
137
< / BrowserOnly>
140
138
// highlight-end
141
139
);
You can’t perform that action at this time.
0 commit comments