LovroHodak / everything

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

  1. Install tailwind npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p

// INDEX.css @tailwind base; @tailwind components; @tailwind utilities;

// TAILWIND.CONFIG.js add: content: [ "./src/**/*.{js,jsx,ts,tsx}", "./public/index.html" ],

so styles can be applied to src and public

// TAILWIND.js -that tailwind components can accept classes, refs, props

// SETTINGS.json -to get suggestions of tailwind classes

  1. INDEX.html -added overflow-y to body and #root

APP.js -useEffect to listen to ref sent to First -if useState changes in App.js change color in First.js

  1. npm i react-query

  2. useQuery.js -GET and POST req

  3. Third.js -useQuery to display GET results -useMutation for POST req --addNewTestUser func where i use mutate -added enable: !text to useQuery so it renders everytime text sets to ''. That means that by default it will be called, and after new is added setText('') so it is called agian

About


Languages

Language:JavaScript 90.3%Language:HTML 9.0%Language:CSS 0.8%