Комментарии:
.....
EmployeeService.createEmployee(employee).then(res=>{
window.location.replace('/employees')
})
.....
return(
<Link to='/employees'>
<button
className='btn btn-success'
onClick={this.saveEmployee}
>
Save
</button>
</Link>
)
Great Job Sir, I'm using React 18.2.0 but this.propos.history.push() is not working for me. I don't know how to navigate
ОтветитьCan you provide an updated course for this? using functional component.
ОтветитьI can't navigate to all employees page as I'm facing error with this.props.history.push after clicking on save button @JavaGuides
Ответитьhello Ramesh, I am new to React. I am having null data stored in database. please help me with that. where i can look for this types of issue?
ОтветитьSir first name and last name are getting stored as null values in database but email is working properly please provide some solution
ОтветитьI can't navigate to all employees page as I'm getting the following error afer clicking on save button -
"Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource"
Can I ask something? How does the server knows to post the employee in DB? I did not see that you updated your project in Spring Boot...
ОтветитьCan you tell me how to show a toast message when the request is successfully completed using axios instead of redirecting to employee table.
thank you!
it was very useful.thank you sir.
ОтветитьThank you sir for your extraordinary work.. Sir i gon through some videos and i definitely show all viseo of Spring and react.. Sir can you upload authentication N authorization of user login n register n logout Thank you
ОтветитьGreat tutorials, can you please do a tut on webclient in spring boot 5 with external api call
Ответить