Skip to content

Tag: reactjs

send blob to python flask and then save it

So I’m trying to make a website that record your voice, the problem is that when I send to a flask server the blob file or the blob url, my flask python code says that is no content while it is, how can I send the blob, so the server can save it as a file. and my python flask

In React Js Axios request getting CROS error

I used Axios for API, here is my code. I am getting CROS error. Answer You’ll need to enable CORS from your back-end service. From the image, it is clear that your front-end in running on localhost on port 3000 whereas your back-end or api service is running on port 8000 on localhost. So, enable CORS fr…

React – how to remove scroll listener

In Home Components, if you scroll down, you will see the Console log something. It’s because Which is Scroll Listener. The problem is that when I switch to other pages such as /about or /dashboard, the Console still log when scrolling because of console.log(e.progress);, which I want to get rid of when I swit…

Nextjs UseEffect is not rendering on route change

I am having problem with a useEffect inside a component which is in every component. I have made some authentication and redirects in that component but I figured that when I use Nextjs link or the go back button from the browser, the Layout useEffect is not re rendering which means it is not checking if the …