score:2

Accepted answer
 render() {
        const list = this.state.slides.map((d, index) => <div className="classTest" key={index}>ID HERE {d.id} - DESCRIPTION HERE {d.desc}</div>); //changed
        return (
            <div className="carousel">
                <div className="data">
                    <div>list before {list} list after</div>
                </div>
            </div>
        );
    }

score:1

const list = this.state.slides.map(d => return (<div 
className="classTest">ID HERE `${d.id}` - DESCRIPTION HERE `${d.desc}`</div>));

Related Query

More Query from same tag