error(3)
-
Routing_loader
라우팅 메뉴링크활성화피드백_NaviLink이용 import React from 'react'; import { NavLink } from 'react-router-dom'; import classes from './MainNavigation.module.css' import { Link } from 'react-router-dom'; function MainNavigation(props) { return ( { return isActive ? classes.menu : undefined; }}> Home { return isActive ? classes.a : undefined; }}> products ); } export default MainNavigation; css a{ text-decoratio..
2024.03.24 -
useEffect , memo
button import Button from "./components/Button"; import { createContext, useReducer,useState } from "react"; export const UserContext = createContext(null); export default function App() { const reducer = (current_state, action )=> { switch (action.type){ case "ADD": return [...current_state, action.xxx]; case "DEL": return [current_state.filter((v,i) => v !== action.xxx)]; default: return curre..
2024.03.19 -
parameter, session
Array @RequestParam String[] array로 출력하는 방법 @RequestMapping(value = "/login", method = RequestMethod.GET) public String login() { return "loginForm"; } @RequestMapping(value = "/login", method = RequestMethod.POST) public String login(LoginDTO dto) { //System.out.println(dto.getUserid()+"\t"+ dto.getPasswd()); System.out.println(dto); return "loginForm"; } @RequestMapping(value = "/login2", meth..
2024.02.16