wait rendering an element till data is fetched code example Example: react how to block render if data is not fetched yet df = df_unindexed.set_index(['Fruit', 'Color']) df