score:2

Accepted answer
{
    this.state.error ?
        (<div>Error: {this.state.error.message}</div>) :
        (
            this.state.isLoaded === false ?
            (
                <div>
                    <i className={"fa fa-spin fa-spinner"}/>
                    <br/>
                    Caricamento...
                </div>
            ) :
            (
                this.state.articles && this.state.articles.map((prop, key) => {
                    return (<>{prop}</>);
                }) 
            ) 
        )
}

Related Query

More Query from same tag