I have an array
const myArray = this.props.values.students;
How can I display none if the array is empty?
This is what I'm currently using...
<p>{this.props.values.students ? myArray : 'None' }</p>
It doesn't seem to render 'None' if the array is in-fact empty. How can I make this work?
{this.props.values.students.length ? ... : 'None'}