From 761bedccdae39044e235add7f8099f888c3d225c Mon Sep 17 00:00:00 2001 From: Evgeny Zakharov Date: Tue, 11 Jul 2023 23:43:12 +0400 Subject: [PATCH] Update link.md --- docs/react/api/link.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/react/api/link.md b/docs/react/api/link.md index 0d926eb..f20323b 100644 --- a/docs/react/api/link.md +++ b/docs/react/api/link.md @@ -45,3 +45,18 @@ export function Example() { ); } ``` + +Prevent navigation: + +```tsx +import { Link } from 'atomic-router-react'; + +export function Example() { + return ( + event.preventDefault()} + /> + ); +} +```