2

I want to have a horizontal scroll-like Netflix in the react js with an arrow on both ends one scrolling previous items and one scrolling next items. But the movies will be dynamic means they are coming from a database. and their number is not fixed. I tried various ways like using section but as the data is dynamic so I don't know how to fix it.

1

1 Answer 1

3

You can checkout react-slick plugin to handle your case. It has a dynamic slides feature where you can add more slides as per your case.

Also, has actions on moving slide which you can use when to fetch the new set of slides from your database.

Ref: https://react-slick.neostack.com/docs/example/dynamic-slides

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.