Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pedroobando/react-starwars

Una apps que consume un api rest - usando un hook useQuery
https://github.com/pedroobando/react-starwars

Last synced: 1 day ago
JSON representation

Una apps que consume un api rest - usando un hook useQuery

Awesome Lists containing this project

README

        

# react-starwars

> Un sencillo ejemplo que demuestra el uso de un CustomHooks -[React-Query](https://react-query.tanstack.com/)

> Consume un EndPoint, manteniendo un cache de los datos por un tiempo definido. Bueno para las paginacion porque no hace falta llamar al endpoint de nuevo, si los datos son muy actuales.

**Que puedo encontrar aqui y ~~que no~~**

- app en React
- bootstrap
- arrow function
- npm package / yarn
- hooks - useState / useEffect / useRef / useCallback
- hooks - useCustonHooks
- arrows functions
- ~~class funtions~~

> Libreria : [npmjs react-query](https://www.npmjs.com/package/react-query)
> Page : [React Query](https://react-query.tanstack.com/)

> EndPoint: [https://swapi.dev/](https://swapi.dev/)

> Proyecto original [React Query - Youtube](https://www.youtube.com/playlist?list=PL4cUxeGkcC9jpi7Ptjl5b50p9gLjOFani)

## License

[![License](http://img.shields.io/:license-mit-blue.svg?style=flat-square)](http://badges.mit-license.org)

- **[MIT license](http://opensource.org/licenses/mit-license.php)**
- Copyright 2020 © Pedro Obando.