Required Application for React
npm create-vite-app@latest foledername
npm install
npm run dev
-
Setup Visual Studio
- Some code for VS Code
settings.json
{ "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit", "source.fixAll.tslint": "explicit", "source.organizeImports": "explicit" }, "eslint.run": "onSave", "emmet.includeLanguages": { "javascript": "javascriptreact" }, "path-autocomplete.extensionOnImport": true, "path-autocomplete.excludedItems": { "*/.js": { "when": "**" }, "*/.jsx": { "when": "**" } }, "javascript.validate.enable": false, "typescript.validate.enable": false }
- Some code for VS Code snippets as well:
{ "React component": { "prefix": "rfc", "body": [ "export default function $1(){", " return (", " $2", " );", "}" ], "description": "React functional component" } }
- Some code for VS Code
The video for learning snippets is: https://www.youtube.com/watch?v=N-U6AVcIPy4
code .
for visualising root files in VS code.Ctrl+,
for bring setting.Ctrl+Shift+p
for bringing Command Platte.