I have developed a JavaScript code called carousel.js with the purpose of adding previous and next events to a carousel. How can I integrate this into my TypeScript project?
Below is the render method where I have included some basic HTML markup.
public render(): React.ReactElement<IReactCarouselProps> {
return (
<div className={styles.image_carousel}>
<div className={styles.inner}>
<img className={styles.img} src="1.jpeg"/>
<img className={styles.img} src="2.jpeg"/>
<img className={styles.img} src="3.jpeg"/>
</div>
<div className={styles.bubbles}></div>
<div className={styles.prev}></div>
<div className={styles.next}></div>
</div>
);
}