Make React components be able to use DI.