• This project
    • Loading...
  • Sign in

육현진 / DBproject

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • DBproject
  • client
  • src
  • components
  • StudentDelete.js
  • 육현진's avatar
    studentdelete module · 81e004d1
    81e004d1
    육현진 authored 2020-12-09 03:14:34 +0900
StudentDelete.js 421 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
import React from 'react';
class StudentDelete extends React.Component{

    deleteStudent(st_Code){
        const url='/api/students/'+st_Code;
        fetch(url,{
            method:'DELETE'
        });
        this.props.stateRefresh();
    }
    
    render(){
        return(
            <button onClick={(e)=>{this.deleteStudent(this.props.st_Code)}}>삭제</button>
        )
    }
}

export default StudentDelete;