Open History to see the last commit
1import { Link as RouterLink } from 'react-router-dom'
2β
3export default function Home() {
4 return (
5 <div>
6 <h2 className="text-4xl">TanStack Query Demo</h2>
7 <p>Using the Rick And Morty API</p>
8 <p>
9 (Built by{' '}
10 <a
11 className="text-blue-500 hover:underline"
12 href="https://twitter.com/axelfuh"
13 >
14 @axelfuh
15 </a>
16 )
17 </p>
18 <h5 className="text-2xl pt-4">Why TanStack Query?</h5>
19 <p>
20 In this demo you will be able to see how TanStack Query is a significant
21 improvement over <strong>redux</strong>, <strong>mobx</strong>, and any
22 other general-purpose state container.
23 </p>
24 <p>
25 No reducers, thunks, or sagas. No ES6 models to maintain in order to tag
26 them as observable.
27 </p>
28 <p>
29 Simply associate a key with your fetch call and let{' '}
30 <strong>TanStack Query</strong> handle the rest.
31 </p>
32 <h5 className="text-2xl pt-4">Ready to get started?</h5>
33 <p>
34 Check out the{' '}
35 <RouterLink className="text-blue-500 hover:underline" to="/episodes">
36 Episodes
37 </RouterLink>{' '}
38 and{' '}
39 <RouterLink className="text-blue-500 hover:underline" to="/characters">
40 Characters
41 </RouterLink>
42 !
43 </p>
44 </div>
45 )
46}