Category "reactjs"

Intellisense for Jest not working in VS code

Edit: Run npm install @types/jest To fix Just trying to type it() and the auto suggestion is isTag I've tried adding a jsconfig.json { "compilerOptions": {

How can I programmatically set the user details for Launch Darkly in my react app

I am wrapping my App.js file in the withLDProvider component and I want to know how I can set the user information from inside of my App function. Let's say fo

Material-UI Can't resolve '@material-ui/core/styles/createMuiTheme

I know people have posted similar question on StackOverflow, but nothing worked for me, the errors are not the same nor are the fixes, so I am creating a new po

Hello, I am using antd treeselect in my react js project . and when i am clicking on parent node child options are not appearing

const treeData = [ { title: '0-1', value: '0-1', key: '0-1', }, { title: '0-2', value: '0-2', key: '0-2', chil

react-draft-wysiwyg Default Value Style doesn't load

I am not able to load default value style in React-draft-wysiwyg . Codesandbox Link: Editor what I tried ? I am using react-draft-wysiwyg library for editor and

React Three Fiber OBJLoader conflicts witth @types/three

I am following the official React Three Fiber Docs here. I am trying to load .obj files into my scene, using this article: react-three-fiber docs: loading obj m

TypeError _this2.flipBook.getPageFlip is not a function

I used to use react-pageflip on Reactjs exactly like the code below and it worked fine. When I copied the same component, I got this error in the nextjs project

mixed payload data fields in react signup form

I am really new to react i created a sign up form but when posting data values are mixed I created onchange and onsubmit to track changes and submit the to back

TextInput style is not updating if there is an emoji in text value

TextInput style is not updating if there is an emoji in text value however without emoji the text value color is updating. I would like to know why this issue i

Nextjs global api calls

I am developing react based web application using NEXT.js,. As specified in NEXT.js, documentation to fetch the data before page loads, i am putting required ac

ReactNative Flatlist onEndReached not working

Im trying to call a function on onEndReached of a FlatList but it's not working. I'm calling the this.state.pageNo at the end and it's not updating. I want to

Whats the difference between toBeInTheDocument and getBy* in @testing-library/react

Is there a difference between expect(screen.queryByText('<something>')).toBeInTheDocument(); And screen.getByText('<something>'); (The specific ge

React App url parameter with S3 and CloudFront

My apologies if the information that I have provided is vague as I am not so experience with AWS and React. I have a React Application being deployed on S3 and

Return value from function React from an Axios' response

I have this function in React that should export the result got from an Axios' API call: import axios from 'axios' export function youtube(channelId) { va

Return value from function React from an Axios' response

I have this function in React that should export the result got from an Axios' API call: import axios from 'axios' export function youtube(channelId) { va

react modal unable to open

i am trying to use the headless ui modal but i am trying to launch this modal.js from my home.js file. so in my home.js file i have something like this function

How to submit a form using Enter key in react.js?

Here is my form and the onClick method. I would like to execute this method when the Enter button of keyboard is pressed. How ? N.B: No jquery is appreciated. c

how to run my node application and react app in the same time with one command?

I am going to build my boilerplate for React and node, the root folder structure is look like this - (root level) - client - src - public

How to prevent click outside React Modal?

I'm currently using react-modal package. I want to disable click and scroll outside react modal component.

Bundler does not load automatically (No bundle URL present error)

After updating my React Native app to the latest version up to date (0.60.4), launching my app using react-native run-ios would result in my application startin