Skip to content

twentyonedot/hybrolabs_swapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hybrowlabs Assignment

This project display starwars characters fetched from SWAPI Api

Tech Stack

React, TailwindCSS, React-Query

Demo

https://swapi-prac.netlify.app/

Run Locally

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

Screenshots

App Screenshot

App Screenshot

Features

  • Glassmorphism
  • Pagination
  • Search Feature
  • Individual Route for each character

Optimizations

  • Optimised the search feature using Debouncing Technique

Appendix

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);
  };
};

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published