bookworm-react
bookworm-react copied to clipboard
Source code for free live-coding series on YouTube
I added some basic information about what is React and how it is used so that others can easily search for it.
TypeError: Cannot read property 'catch' of undefined LoginForm.onSubmit C:/xampp/htdocs/bookworm-app/src/component/Forms/LoginForm.js:27 this.setState({ errors }); if (Object.keys(errors).length === 0) { this.setState({ loading: true }); this.props .submit(this.state.data) .catch(err =>this.setState({ errors: err.response.data.errors, loading: false }));...
when I try to save a book I get this error => TypeError: Cannot read property 'catch' of undefined
Hello, when I try to save a book i get this error, ``` TypeError: Cannot read property 'catch' of undefined BookForm._this.onSubmit C:/code/bookworm/src/components/forms/BookForm.js:55 52 | this.setState({ errors }); 53 | if...
When user Logged in the state of User reducer should update with token and email. But in redux devtool action showing user object having email and token property data from...
Unhandled Rejection (TypeError): Cannot read property 'push' of undefined at line submit=(data)=>this.props.login(data).then(()=>this.props.histroy.push("/")) Please Check.
POST http://localhost:3000/api/users 500 (Internal Server Error) dispatchXhrRequest @ xhr.js:178 xhrAdapter @ xhr.js:12 dispatchRequest @ dispatchRequest.js:52 Promise.then (async) request @ Axios.js:58 Axios.(anonymous function) @ Axios.js:78 wrap @ bind.js:9 signup @ api.js:7...
decode() doesn't verify the authenticity of the jwt from localStorage (in index.js), so PrivateRoutes might be accessible with a forged jwt
Hi Remchi, Need mysql with express js for bookworm react
I don't know why but my page refreshed after I clicked on login button even when my fields are not validate. I set `e.preventDefault()` to `onSubmit` function and put **errors**...