We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- React
- Components
- Slideshow
- Discussions
Slideshow
Slideshow
Sort by
recency
|
36 Discussions
|
Please Login in order to post a comment
when the test fails it because the problem requirements were not completed in my case, So read the problem again.Thank you This is my code
import React, { useState } from "react";
function Slides({ slides }) { const [count, setCount] = useState(0);
const next = () => setCount((prev) => prev + 1); const prev = () => setCount((prev) => prev - 1); const restart = () => setCount(0);
return ( {count === 0 ? ( Restart ) : ( Restart )}
); }
export default Slides;
my solution
Simple Solution:
here is my answer