Skip to content

Commit 5be51ce

Browse files
committed
Avoid full page reload on getting started link
1 parent 5ce5799 commit 5be51ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/pages/home/Splash/index.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import React from 'react';
2-
import useBaseUrl from '@docusaurus/useBaseUrl';
31
import Link from '@docusaurus/Link';
2+
import useBaseUrl from '@docusaurus/useBaseUrl';
3+
import React from 'react';
44

5-
import styles from './styles.module.css';
6-
import Spiro from '/img/spiro_header.svg';
75
import SplashLeftIllustration from './SplashLeftIllustration';
86
import SplashRightIllustration from './SplashRightIllustration';
7+
import styles from './styles.module.css';
8+
import Spiro from '/img/spiro_header.svg';
99

1010
export default function Splash() {
1111
return (
@@ -22,12 +22,12 @@ export default function Splash() {
2222
Routing and navigation for Expo and React Native apps.
2323
</h3>
2424
<div className={styles.buttonContainer}>
25-
<a
26-
href={useBaseUrl('/docs/getting-started')}
25+
<Link
26+
to={useBaseUrl('/docs/getting-started')}
2727
className={styles.button}
2828
>
2929
Read Docs
30-
</a>
30+
</Link>
3131
<a
3232
href="https://github.com/react-navigation/react-navigation/tree/main/example"
3333
className={`${styles.button} ${styles.buttonPrimary}`}

0 commit comments

Comments
 (0)