Hello @Kuljit,
Welcome to Microsoft Q&A forum.
Based on the tests, there’s no way to directly port the existing React application to a React project in VS 2022.
Visual Studio has a feature to create a new project from existing code(File > New > Project From Existing Code…), but it only supports Visual C++, PHP, Visual Basic and C# type of project currently.
You can directly open the folder which contains the existing React application(File > Open > Folder…), but only four npm tasks are available(right-click the package.json file > Npm): npm run-script start, npm run-script build, npm run-script test and npm run-script eject. The .esproj file(project file) and the .sln file(solution file) will not be generated automatically, so it’s still not a project.
You may try to create and use a new React project in Visual Studio.
Please feel free to let us know if you have any further concerns.
Best Regards,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.