useEffect(() => {
fetch('http://localhost:3333/episodes')
.then((response) => response.json())
.then((data) => console.log(data));
},[]);
const response = await fetch(
'http://localhost:3333/episodes?_limit=12&_sort=published_at&_order=desc'
);
const data = await response.json();
const {data} = await api.get('episodes',{
params:{
_limit:12,
_sort:'published_at',
_order:'desc'
}
})
fallback: 'blocking'
Ideal para SEO
- PWA (next-pwa)
- Mobile layout
- Tema dark
- Electron