Skip to content

Commit

Permalink
Avoid full page reload on getting started link
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Aug 8, 2024
1 parent 5ce5799 commit 5be51ce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/home/Splash/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import React from 'react';
import useBaseUrl from '@docusaurus/useBaseUrl';
import Link from '@docusaurus/Link';
import useBaseUrl from '@docusaurus/useBaseUrl';
import React from 'react';

import styles from './styles.module.css';
import Spiro from '/img/spiro_header.svg';
import SplashLeftIllustration from './SplashLeftIllustration';
import SplashRightIllustration from './SplashRightIllustration';
import styles from './styles.module.css';
import Spiro from '/img/spiro_header.svg';

export default function Splash() {
return (
Expand All @@ -22,12 +22,12 @@ export default function Splash() {
Routing and navigation for Expo and React Native apps.
</h3>
<div className={styles.buttonContainer}>
<a
href={useBaseUrl('/docs/getting-started')}
<Link
to={useBaseUrl('/docs/getting-started')}
className={styles.button}
>
Read Docs
</a>
</Link>
<a
href="https://github.com/react-navigation/react-navigation/tree/main/example"
className={`${styles.button} ${styles.buttonPrimary}`}
Expand Down

0 comments on commit 5be51ce

Please sign in to comment.