SyntaxFix
Write A Post
Hire A Developer
Questions
You can also use the iteration count (i) as the key:
key
render() { return ( <ol> {this.props.results.map((result, i) => ( <li key={i}>{result.text}</li> ))} </ol> ); }