Skip to content

Instantly share code, notes, and snippets.

@maniac787
Last active September 14, 2020 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maniac787/5a78cc8c6a5ca068479327cb7a94b47c to your computer and use it in GitHub Desktop.
Save maniac787/5a78cc8c6a5ca068479327cb7a94b47c to your computer and use it in GitHub Desktop.
ConfigureReactCodeNpm

~/.npmrc file Con proxy: proxy=http://username:password@host:port https-proxy=http://username:password@host:port https_proxy=http://username:password@host:port

Configurar VsCode con Proxy "http.proxy": "http://my.proxy.address:8080", "https.proxy": "http://my.proxy.address:8080", "http.proxyStrictSSL": false

  • Verificar instalacion node, npm

  • Actualizar npm, npm install -g npm@latest

  • Borrar la cache npm cache clean --force

  • Instalar react App template

    • npm install -g create-react-app
  • Generar nuevo proyecto

  • npx create-react-app my-app --template typescript

  • Crear componente

  • npm i generate-react-cli

  • https://www.npmjs.com/package/generate-react-cli

  • npx generate-react-cli component Box

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment