Skip to content

Latest commit

 

History

History

05_password_generator

React Hooks and Use Tailwind CSS

Import hooks :-

import { useState, useCallback, useEffect, useRef } from "react";

Use hooks :-

const [state, setState] = useState(initialState)

const cachedFn = useCallback(fn, dependencies)

useEffect(setup, dependencies?)

const ref = useRef(initialValue)

Learn more from React Hooks[(https://react.dev/reference/react/hooks)].

Learn

1- Learn how to Use a react various hooks hooks in various condition
2- Learn how to make a small project a good project and learn more from it.