React: rendering vs running your components