Open History to see the last commit
1'use client'
2β
3import React from 'react'
4import { useSuspenseQuery } from '@tanstack/react-query'
5import { pokemonsQueries } from '../services/pokemons/queries'
6β
7export function PokemonInfo() {
8 const { data } = useSuspenseQuery(pokemonsQueries.detail(25))
9β
10 return (
11 <div>
12 <figure>
13 <img src={data.sprites.front_shiny} height={200} alt={data.name} />
14 <h2>I'm {data.name}</h2>
15 </figure>
16 </div>
17 )
18}