Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

Home.tsx

44 lines1.3 KB

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