react how to block render if data is not fetched yet

JavaScript
df = df_unindexed.set_index(['Fruit', 'Color'])
df

Source

Also in JavaScript: