This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun devOpen http://localhost:3000 with your browser to see the result.
- Global concepts
const t = useTranslation()
const router = useRouter()- Global States, can be also regulat state if needed create before queries
const state = useAppStore()
const [state,setState] = useState()- Queries, fetching data or custom Hooks
const {data} = useQuery()
const customData = useCustomHook()- State, ref and data
const [state,setState] = useState()
const ref = useRef()
const data = state + 5- Functions
const func = () => {}- LifeCycle Hooks
useEffect(() => {},[])