You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+14
Original file line number
Diff line number
Diff line change
@@ -319,6 +319,8 @@ export default () => (
319
319
320
320
That will generate the URL string `/about?name=Zeit`, you can use every property as defined in the [Node.js URL module documentation](https://nodejs.org/api/url.html#url_url_strings_and_url_objects).
321
321
322
+
##### Replace instead of push url
323
+
322
324
The default behaviour for the `<Link>` component is to `push` a new url into the stack. You can use the `replace` prop to prevent adding a new entry.
323
325
324
326
```jsx
@@ -329,6 +331,18 @@ export default () => (
329
331
)
330
332
```
331
333
334
+
##### Using a component that support `onClick`
335
+
336
+
`<Link>` supports any component that supports the `onClick` event. In case you don't provide an `<a>` tag, it will only add the `onClick` event handler and won't pass the `href` property.
0 commit comments