react-swipeable-views icon indicating copy to clipboard operation
react-swipeable-views copied to clipboard

Add hooks support

Open shubhamV123 opened this issue 5 years ago • 2 comments

Trying to add hooks based functional component. Hooks logic is not working in that component. Add hooks Support.

shubhamV123 avatar Feb 06 '20 13:02 shubhamV123

Great suggestion! Due to the current status of the creator of the library being occupied by a different project we kindly encourage you to make a Pull Request, we will than review, test and if positive, merge it!

vanhoutenbos avatar Apr 17 '20 09:04 vanhoutenbos

I'm not sure what the original requestor is trying to do but I currently have this working with the React.useState hook in my a functional component in my app.

const [activeStep, setActiveStep] = useState(0);

dbeidle avatar Oct 08 '20 17:10 dbeidle