When to us ‘this’ in react components (non-exhaustive list)
Within the render() method you use this when: accessing props: this.props.whatever accessing states: this.state.whatever accessing methods: this.method Not used when: variables:
How to concatenate/link two ternary operators
When you link two ternary operators together, the second return can be another condition that introduces another ternary operator. Like this.
Sigue mi blog
Recibe nuevo contenido directamente en tu bandeja de entrada.