구디 아카데미 수료 과정/JPA (2) 썸네일형 리스트형 구디아카데미 후기/ 국비지원IT개발자 취업 / 전민균 강사님/클라우드 활용 자바개발자 양성과정/•90일차/03.07 리액트 클래스형 컴포넌트와 함수형 컴포넌트의 차이 import React, { Component } from 'react'; class ListEmployeeComponent_Class extends Component { //생성자를 통한 클래스형 컴포넌트 // constructor(props){ // super(props); // this.state = { // name:"employees", // items:[] // } // } //생성자 없이 클래스형 컴포넌트 state = { name:"employee", item:[] } componentDidMount(){ EmployeeService.getEmployees().then((res)=>{ this.setState({item:res.data}) .. 구디아카데미 후기/ 국비지원IT개발자 취업 / 전민균 강사님/클라우드 활용 자바개발자 양성과정/•87일차/03.04 Link import{Link}from 'react-router-dom' Button {employee.firstName} href말고 Link 써~ {employee.firstName} const navigate = newNavigate() const viewEmployee = (id) =>{ navigate(`/viewEmployee/${id}`) } viewEmployee(employee.id)} > 상세 App.js 구디아카데미 후기/ 국비지원IT개발자 취업 / 전민균 강사님 이전 1 다음