Sign in

Frontend Engineer, JavaScript enthusiast, DJ, writer and minimalist. Develops things at heycar — JS, React, React Native, Next.js.

This custom hook will support/include these features:

  • Loading Indicator
  • Error Handling
  • Using On didMount or Some After
  • Dynamic Url
  • Dynamic Parameters
  • Manual Refetch


Photo by Kelly Sikkema on Unsplash


Photo by Kadir Celep on Unsplash


Photo by Fredy Jacob on Unsplash


Photo by Alina Grubnyak on Unsplash


Photo by Alex Knight on Unsplash


Photo by Michael Browning on Unsplash


Photo by Jessica Felicio on Unsplash

1. Set

2. Filter

- Bonus: Retrieve the duplicate values

3. Reduce


Photo by Henry Be on Unsplash

#1. Install flickity 👾

yarn add flickity
npm install flickity --save

#2. Create a file called Slider.js ✍

Slider.js component for Flickity

#3. Use it in a component 😊

Home.js example component

Onur Şuyalçınkaya

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store