Next.js
+ TypeScript
+ Redux-Toolkit
+ styled-components
μΈν
eslintrc(airbnb)
+ prettier
μ€μ header, footerλ₯Ό ꡬννλ κ³Όμ μμ μ€ν¬λ‘€νμ λ λ΄μ© μμμ΄ header, footer μλ‘ μ¬λΌμ€λ
z-index
κ° λ¨Ήμ§ μλ λ¬Έμ κ° λ°μνλ€.
π CSS - z-index μ μ© μλ λ (Why your z-index isn't working)
μ΄ λ, position: relative
λ₯Ό ν¨κ» μ¬μ©νλκΉ λ¨Ήνλ€!
position: relative;
z-index: 1;
const numbers = [1, 2, 3, 4, 5];
numbers.forEach(function(number) {
console.log(number);
});
1
2
3
4
5
π Routing: Linking and Navigating | Next.js
import { useRouter } from 'next/navigation';
export default function Page() {
const router = useRouter();
return (
<button type="button" onClick={() => router.push('/dashboard')}>
Dashboard
</button>);
}
μ°λ§, μ°μ΄λΌ μ’ ν€μ΄ν΄μ§ λλμ΄ μλλ° λ€μ μ΄μ¬ν μ·¨μ€ν΄λ³΄μ!
9μΌλΆν° μν°λ ν리μ¨λ³΄λ© κ°μλ λ€μΌλ©΄μ μ’ λ μ¬κΈ°λ₯Ό λΆλμ보μꡬ..