Debug

Slideshow onChange Function

Internal CH.Slideshow state object is being logged to console from the onChange event. CH.Slideshow is also being initialized on a different slide number.

src/index.js

import React from "react"
import ReactDOM from "react-dom"
function MyComponent({ name }) {
return (
<div>
<button>Hello</button>
</div>
)
}
const app = (
<div>
<MyComponent name="Messi" />
<MyComponent name="Ronaldo" />
</div>
)
ReactDOM.render(app, document.getElementById("root"))

And React will pass them to the component as parameters