stevenhansel / react-pokedex Goto Github PK
View Code? Open in Web Editor NEWA pokedex made with CRA & Typescript and also PokeAPI
Home Page: https://pokedex.stevenhansel.com
License: MIT License
A pokedex made with CRA & Typescript and also PokeAPI
Home Page: https://pokedex.stevenhansel.com
License: MIT License
Add a modal to filter pokemons based it's generations (Gen 1 - Gen 8)
Someone noticed that the evolution tree of the pokemon doesn't have any branches. We need to make a tree data structure to ensure the evolution lines are displayed correctly.
Pokemons page for react-pokedex, able to search & paginate for pokemons based on filters (pokemon type & generation)
Instead of using React.FC as the returning type of a React Component, Hook, or whatever, just use:
type Props = {
children: React.ReactNode;
};
const Component = ({ children }: Props) => {
return children;
};
If the pokemons are still fetching, isLoading
, and then you scroll down and stay there until the loading is done, you have to scroll up first and then scroll down again to activate the waypoint onEnter
, this is related to the <InfiniteScroll.Waypoint />
component.
It's a pain when there's a ton of pokemon and then you scroll up and then you have to scroll down manually, maybe like set fixed button that allows you to scroll to the bottom of page immediately?
Right now, you can't search when it's fetching, actually you can, but the old dispatched action can't be cancelled so there will be 2 async request dispatched, and if you keep searching there will be n async request dispatched.
This is really bad, we need a find a way to be able to cancel those async requests.
right now the implementation is at getPokemons
in pokemonSlice
There are some specific places where the style is determined by a state of a component, instead of concatenating them, use clsx
to help managing string concatenation.
Pokemon Details Page for react-pokedex. Able to see the complete detail of a Pokemon.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.