import React, { Component } from "react"; import { Loader } from "semantic-ui-react"; class Board extends Component { constructor() { super(); this.state = { isLoaded: false, threadList: [] } } componentDidMount() { // fecth boardlist } render() { const { isLoaded, threadList } = this.state; if (!isLoaded) { return ( Cargando ... ) } else { return "yay"; } } } export default Board;