React helper method