Migrate React context