Category "reactjs"

React native communication between React native and android with custom object

I have a react native component that communicates with Android like this - My React Native code- const myModule = NativeModules.MyProcessor; myModule.proces

google picker is not woking in react

react-google-drive-picker react-google-picker methods from both package are expired. response when try to authenticate : { error: "idpiframe_initialization_f

ReactJS + Material-UI: How to alternate colors between Material-UI <Table/>'s <TableRow/>?

I currently have a Material-UI's <Table/> ( http://www.material-ui.com/#/components/table ), and would like each row to switch off between color blue and

Storybook throws an error when I want to install it with Next

Storybook throws this error when I am trying to install with a Next.js app which already exists: • Detecting project type. ✓ • Adding Storyb

The value of "offset" is out of range. It must be >= 0 && <= 17825792

You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: RangeError [ERR_OUT_OF_RANGE]: The value of "offset" is out

How to get Custom Field data on WPGraphQL

How to get Custom Field data on WPGraphQL I add a custom field for upload featured image for category. Now I want to get this value on WPGraphQL Query.

React Material UI show progress in Table while waiting on data

I know it is possible to show Circular progress over the as-yet-to-be-populated table. How do you do it? As it stands right now the table says No records to d

./src/App.js Attempted import error: 'Switch' is not exported from 'react-router-dom'

I can't figure it out why doesn't work. I have uninstalled the react-router-dom package and reinstalled it, but I always have the same error. The error I'm gett

React does not recognize the `initialValue` prop on a DOM element

Warning: React does not recognize the `initialValue` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as

ReactJS: How to determine if the application is being viewed on mobile or desktop browser

In ReactJS, is there a way to determine if the website is being viewed on mobile or desktop? Because, depending on which device I would like to render different

What dependencies should be in to devDependencies in React on production

I'm having a problem with the size of node_modules so I'm trying to reduce it as much as possible so my solution right now is to put unused depencies on product

React "useRef": no access to method in .current

So in my React Native application, I want to integrate this slider, following the guidance here. Problem is, I want to get access to the method setLowValue()

Firebase error - call Firebase App.initializeApp() -

I have problem with firebase in react. It shows "Uncaught FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeAp

How to use the increment operator in React

Why when I am doing this.setState({count:this.state.count*2}) it is working, but when I am doing: this.setState({count:this.state.count++}) it is not working?

How to conditionally apply CSS classes in React JS

I've been musing on how best to conditionally apply a CSS class in React JS. I've seen some answers banding around but there aren't many out there or they're ju

How to conditionally apply CSS classes in React JS

I've been musing on how best to conditionally apply a CSS class in React JS. I've seen some answers banding around but there aren't many out there or they're ju

Jest matcher to match any one of three values

I have this selector in my component whose default state is '' (empty) string but when change event is fired user can select any one of the three values that is

Prevent rerender react array of objects

I have an Ul component which contains an array of objects with different values in it. Each item called TestCase in this list has a button which makes a restcal

Alternative for Prompt in React Router V6

What is the alternative for Prompt in React Router V6, has it been deprecated, and also hooks like usePrompt, useBlocker are also not available. <Prompt mess

mock function error in react-testing-library

Hii Everyone I am new to react testing ,I am trying to do some example for practise , I am getting a Error,Need your help , this is my App Component const[fi