I'm attempting to add in buttons that go forwards and back with this package: https://www.npmjs.com/package/@egjs/react-flicking. Everything works great but I also want to add in forward and back arrows and am scratching my head trying to understand how I can pass next to the instance. Their documentation is vanilla so it's definitely my lack of react experience causing this issue... Thanks!
import Flicking from "@egjs/react-flicking";
<div>
<Flicking
onMoveStart={(e) => handleMoveStart(e)}
onChange={(e) => handleChange(e)}
>
{props.slides.map((slide, i) => (
<Slide
className={i === 0 ? 'current' : ''}
key={i}
>
<Card slide={slide} />
</Slide>
))}
</Flicking>
<button onClick={handleNext}>Next</button> // should call next when clicked and advance <Flicking>
</div>