jossmac / jossmac/react-images

navigation (component) how to manage internal state?

Open
#353 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.3k
Forks
433
PR merge metrics
No merged PRs in 30d

Description

Could you guys list some examples for the components. Is it possible to pull in the component as is and then edit what you would like. For example if I wanted the `NavigationNext` component and I wanted to change what the function does. Lets say something like jump by two slides, how do you alter the functionality.

This what the docs say.
``
Button allowing the user to navigate to the next view. Accepts an onClick function.

What does it mean accepts the onClick function and can I change the functionality.

If anyone could give a very short example that would be great. Thank you.

Contributor guide

Open the contributing guide

Research direction

Start with the NavigationNext component documentation and its description of the onClick prop. Add a short example explaining how to provide custom navigation behavior, including moving by two slides, and make sure the example answers whether the component can be customized.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
documentation, frontend
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.