Apply for Zend Framework Certification Training

ReactJs




< create react routes using v6 Update user data in reactJs >



Step -1 Add some code in userlist.jsx 
   <input type='button' value='delete' onclick={()=>{handleDelete(users.users_id)}}/>
 
Step-2 define handleDelete
 
 const handleDelete = (id)=>{
        console.log(id)
        axios.delete('https://api.uncodecart.com/users/deleteuser/'+id).then((response)=>{
            console.log(response.data.message)
            userlistdata()
        })
    }
 

< create react routes using v6 Update user data in reactJs >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top