When I click on useState, I get wrong import:
import { useState } from "react/cjs/react.development";
I need to click and get:
import { useState } from "react";
How to change this?
When I click on useState, I get wrong import:
import { useState } from "react/cjs/react.development";
I need to click and get:
import { useState } from "react";
How to change this?
I faced same problem. It suddenly happened few days ago to me, don't know what exactly gone wrong with my project.
But, I found temporary solution and using it.
install @types/react into your project.
solution from: https://github.com/microsoft/vscode/issues/141385