Changes
1. You return 2 elements from the method render, you need to wrap them in div.
See more details.
2. , , array 'mm/dd/yyyy' , 'dd/mm/yyyy':
const VALUES = ['20-04-1991'];
:
const VALUES = ['04/20/1991'];
:
render(){
const VALUES = ['04/20/1991'];
return(){
<div>
<HorizontalTimeline
values={VALUES}
indexClick={(index) => {
this.setState({value: index, previous: this.state.value});
}}
/>
<div className='text-center'>
{this.state.value}
</div>
</div>
}
}