I have nextjs frontend that fetch data from strapi backend. Problem is that data is empty even if i can see on strapi dev logs that request has been made. This is next.js code And here is the strapi log But I don’t know why is data empty. Truth is that the response consist of base64 long text but I
Tag: reactjs
hi i’m using react-native and react-navigation
when i try to navigation.navigate this error occure Cannot read property ‘navigate’ of undefined this is my code when i try to navigation.navigate this error occure Cannot read property ‘navigate’ of undefined this is my code card.js navigator.js i don’t know how can i resolve…
How do I upload some special file extensions (djvu, jp2, …) on web
I have some problems when I try to upload an image. some extensions do not appear on the Upload Dialog, such as (.djvu, .jp2). How do I accept that without selecting All (.) Answer Use the accept Parameter like that:
React-Router locations on AWS s3 bucket do not work
I have my static react app hosted in an AWS s3 bucket. It renders fine. However, I am utilizing react-router-dom to navigate between “pages.” (I have enabled public access, enabled static website hosting, listed my index document as index.html). For example, my bucket website endpoint is http://&l…
Plot histogram in ReactJS
Suppose I want to plot histogram for time taken to read each book. I calculated time to read each book and stored in an array as As I gone through different methods on how to plot histogram …. I found that to display data , it should be in range as: But on basis of my previous data how can
Set active class conditionally in React
I am new to React and of course, I am facing problems, the thing I am trying to accomplish is this. When any of these Components is opened I want to set an active class. I have already tried something but it is not working. So I want to add a background color to these divs className=’menu__iconsRight &#…
How to implement button disable function or other technique so that user does not log in twice? react, express
I am trying to prevent users from login in twice and creating 2 sessions (when they press log in button twice very fast). I am thinking of disabling button after it was click and the enabling it after approx. 2 sec in case there was an error e.g. “password incorrect” so that users can reenter thei…
editly – Where can I get the return value after a video is created?
Quick question… Following along the README of editly, I managed to create videos after calling editly like this: Unfortunately, I am using ExpressJS to do this and I need to send back a response when video creation completes. However, when I tried to extract any value using .then, it returns undefined: …
NPM Run Watch is Not Working For React Project
Hello Im trying to use NPM Run Watch so I can see localhost:3000 for my React Project but I’m getting a weird error so I don’t even know where to begin. Not sure if anyone is familiar with this guy but I’m using codingphase starter package and before I did npm run watch I installed gulp I ha…
I need to create a delay for text2 in my react component
As the title suggests. You can see in my code, I have text and text2 that forms the text for the typing effect. But they both start at the same time. I would like to create a delay on text2 so that it starts when text finishes. Any help would be greatly appreciated and thank you in advance. Answer Here