Skip to content

Instantly share code, notes, and snippets.

View GOJAx64's full-sized avatar
🖥️
=)

Alberto García GOJAx64

🖥️
=)
  • University of Guadalajara
  • Guadalajara, Jalisco
View GitHub Profile
@GOJAx64
GOJAx64 / create-project.md
Last active September 16, 2022 03:29
Comands to create a react-ts project

First you need to install

Node JS

Prove it

Install yarn with

npm install --global yarn

Installation of React Redux

In projects of React + Vite

  1. Isntallations:
yarn add @reduxjs/toolkit react-redux

Quick Start

@GOJAx64
GOJAx64 / References-React-JS.md
Last active July 14, 2022 00:11
References to docs and information that I consider important to work with React JS
@GOJAx64
GOJAx64 / installation-tailwind-with-reactjs-yarn.md
Last active June 24, 2022 20:12
Installation of Tailwind CSS with React JS + Vite + Ya

Installation and configuration of Tailwind CSS + React with Vite

In projects of React + Vite

1. Install Tailwind CSS Install tailwindcss and its peer dependencies, and then run the init command to generate both tailwind.config.js and postcss.config.js:

yarn add -D tailwindcss postcss autoprefixer
yarn tailwindcss init -p
@GOJAx64
GOJAx64 / vite-jest-testing-config.md
Last active June 23, 2022 21:26
Guide to install and configure Jest + React Testing Library

Installation and configuration of Jest + React Testing Library

In projects of React + Vite

  1. Isntallations:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Optional: If we use Fetch API in the project: