reactjsvisual-studio-codecode-snippetsbuilt-in

Built-in snippet not working in VS Code for React


I am coding a React page with VS Code.

Suddenly, some snippets like rfce started not working even if it's never given me problems. I don't know what's wrong.

picture of before

enter image description here

picture of now

enter image description here

What I did recently was just updated react-router-dom to version 5.2.0 and npm install it.


Solution

  • React snippets are not built-in. That one for example comes from this extension.

    Make sure you have it installed and enabled, and that you are working in a file with the proper file extension for them to work.