This project display starwars characters fetched from SWAPI Api
React, TailwindCSS, React-Query
https://swapi-prac.netlify.app/
Clone the project
git clone https://link-to-project
Go to the project directory
cd my-project
Install dependencies
npm install
Start the server
npm run start
- Glassmorphism
- Pagination
- Search Feature
- Individual Route for each character
- Optimised the search feature using Debouncing Technique
Debouncing Snippet
const debounce = function (fn, d) {
let timerId;
return function () {
const context = this,
args = arguments;
clearTimeout(timerId);
timerId = setTimeout(function () {
fn.apply(context, args);
}, d);
};
};