Categories
Mastering Development

Django + React Able to create new user in database, but token-auth returns 400 bad request

So I have an app that I’m writing. It’s working, for the most part, so far. I only currently have a login and signup setup, with a ‘homepage’ that just has a logout button and some text on it so I can test. When I do signup, it posts the user to the database, but […]

Categories
Mastering Development

React history.push is updating url but is not unable to load the desired component

I have 2 components namely ‘Navbar’ and ‘PostInputDailogueBox‘ which present inside the App.js component. whenever I click a button in the navbar I need to navigate from the ‘Navbar‘ component to the ‘PostInputDailogueBox‘ component. To do this used history.push() but I am not able to navigate to the desired component. below are specified related component: […]