I have a small project and I want to pass from <ThemeContext.Provider /> to <ThemeProvider />. but when I tried I got <ThemeProvider. /> (with an extra dot!!!)
Here is an example: https://astexplorer.net/#/gist/e06688772514aefc6e776a6a0031dbf5/eb8bf6546886b2ea2f2bf5bf425ebe024f49d217
You can try to find all
JSXMemberExpressionwhich effectively corresponds to havingFoo.Barin opening or closing elementJSXBoundaryElementname. Filter those accessingThemeContext. And then replace them with identifier