Questions tagged [reactjs]

0 votes
1 replies
Clicking the button does not work - React
I use a component called "Modal" that I want to make global so I can use it in any other component. Modal will be used in all the components that...
asked 1 month ago
2 votes
2 replies
UI doesn't update until tap on the screen when setState is called inside a realm listener callback
UPDATED DESCRIPTION I have a listener on a Realm Object for getting updates. When there is an update on the server (or in the client) the funct...
0 votes
0 replies
I get undefined ctx.request.files when uploading image with React
I'm trying to upload some images from React to Koa server and store them on specific folder. I tried to do so by putting images on React's local...
asked 1 month ago
0 votes
1 replies
Test a React tag with dot notation
I have this simple react component that uses Semantic UI tags: render() { return ( <Card.Meta ref="CardStatusComponent123" classN...
-1 votes
1 replies
React events not trigering on mobile but works fine in desktop. I tried onClick,onTouchStart, onTouchEnd, onMouseUp,OnMouseDown
when i try to click the button event itself is not triggering in mobile.I works fine in desktop. I saw some posts and tried cursor ,z-Index prop...
asked 1 month ago
0 votes
0 replies
Strange behavior when selecting an input and refactoring best practices
This code functions for the most part as expected however the last 5 input fields remain blank while entering text until you select another input...
1 votes
1 replies
How to receive and map dynamic URLS using Prismic and Server Side Rendering
I have an app using Create Next App with SSR using the Prismic API as a content source. I am trying to create dynamic routes and running into a...
0 votes
0 replies
Unit test error: Field must be inside a component decorated with reduxForm()
I am trying to test my container, but the very first thing it does before even going to the test is this error: 27 | }; 28 |...
asked 1 month ago
0 votes
0 replies
“.map is not a function” error only on Android Pie?
We are encountering a rather strange phenomena with .map in our React-Native (version 0.59.3) project: The APK runs well on various physical devi...
asked 1 month ago
0 votes
2 replies
Flexbox layout with two columns on desktop and one column on mobile
Simple layout with flexbox question: Desktop Layout requirements Two responsive columns 1st column with 30% of the width 2nd column with 70%...
asked 1 month ago
0 votes
0 replies
Why React returns “Object() is not a function” when using marked library?
I'm making a markdown editor using Marked library like this <div id="preview" dangerouslySetInnerHTML={ {__html: marked('Rendered by **marked*...
asked 1 month ago
0 votes
1 replies
How to wait firebase, fetch data and return array in method?
So i have this method in container component: getProfilesOptions = () => { const result = firebase.firestore().collection('roles').get()...
asked 1 month ago
0 votes
1 replies
When uploading a single file, Filepond submits an empty file before submitting the “real” file
I'm trying to understand what Filepond is uploading to my server method and I've run across something really confusing. I'm only using the proces...
asked 1 month ago
-1 votes
0 replies
how to use canvas or konva in react-native , or how to pass from react to react-native?
I'm doing a project in native react and I have to make a stickman, I use canvas to make the shape and movement of my stickman but I can not integ...
0 votes
2 replies
SyntaxError when NPM script is executed
I'm trying to update the dependencies of a React app. This app includes a script defined in package.json which generates a message bundle for eac...
1 votes
1 replies
How to fix amcharts zoom reset on data reload
I use amcharts 4 and when the data reloads, it resets the zoom level. How do I prevent this? I have two timeouts, but I don't think they are caus...
asked 1 month ago
2 votes
1 replies
Can't Perform a React State Update on an Unmounted Component. This is a no-op - Mob X Related
I'm currently working on a smart home sort of app and are a beginner, and I'm using mobX to set the active room names. I set them in the "Dashb...
1 votes
1 replies
Strange React hooks behavior, can't access new state from a function
I use the library react-use-modal, and I'm trying to read the updated value of confirmLoading when inside the handleClick function. handleClick...
asked 1 month ago
-1 votes
0 replies
How do I integrate socket.io into my React app? [closed]
I am trying to make something like a lobby for Spyfall game. I managed to connect to firebase and keep track of who has joined the room. For some...
asked 1 month ago
0 votes
1 replies
How to pass a functional component inside an event?
So, I have a form and I want the user to display the values user fills in the fields as a JSON object at the end when the user clicks the submit...
asked 1 month ago
-1 votes
0 replies
How can we customize call screen in react native? And on click open customize call screen [closed]
I want one button on customize call screen on that button click I want to open a modal in react native -1 Please, share the code you have...
asked 1 month ago
0 votes
3 replies
ReactJs search button reloads page before fetch can get image links and display them
My react app had a CompnentDidMount() function which would uses fetch to obtain image links. I wanted to update the app to have a search button....
asked 1 month ago
-1 votes
0 replies
How to render table with independent rows/columns
I'm new in ReactJS and I'm trying to dynamically delete specific row in the table. I have done delete function and it works just fine, but sinc...
asked 1 month ago
0 votes
1 replies
Delete all data in mongoDB at once from React with API axios
I'm new at programming, and need some help. In React I'm trying to delete all items from database mongoDB with axios using map(). When I click bu...
asked 1 month ago
0 votes
0 replies
TypeError: Theme is not a constructor
I'm trying to create one text editor with annotation feature in reactjs. I tried to use this library to do that, But I'm getting issues in the co...
asked 1 month ago