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
Copy

import React from "react"
import ReactDOM from "react-dom"
const app = React.createElement(
"h1",
{ style: { color: "teal" } },
"Hello React"
)
ReactDOM.render(app, document.getElementById("root"))

React provides a createElement function to declare what we want to render to the DOM