Questions tagged [reactjs]

React is a JavaScript library for building user interfaces. It uses a declarative, component-based paradigm and aims to be both efficient and flexible.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How can I add field in a certain collection?

I wanted to know how to add a field in a certain user uid
0
votes
0answers
6 views

2checkout Payment Authorization Failed in React

I have been using 2checkout payment gateway. I am using the script file provided by 2checkout. First I was importing it in my index.html file by using <link></link> and it was giving me an ...
0
votes
0answers
6 views

When Getting selector values from child component need to select two times [duplicate]

When Getting selector values from child component need to select two times to get the value. Even then it takes the previous selected value Child Component: function Picker({pickCount}) { const [...
0
votes
0answers
11 views

React ref that depends by an element's reference does not get passed to the child components

The following code creates an object ref that's called editor, but as you see it depends by the contentDiv element that's a ref to a HTMLElement. After the editor object is created it needs to be ...
1
vote
1answer
11 views

Getting error as 'Cannot read property scrollIntoView of null' when used scroll down code

The above error frequently occurs with the following code const [consumerMessages, setConsumerMesssages] = useState([]) const messagesEndRef = useRef(null); const scrollToBottom = () => { ...
1
vote
1answer
24 views

TypeError: Cannot read property 'name' of undefined [reactjs] with oracle database

The code gives me this error : I see the error TypeError: TypeError: Cannot read property 'name' of undefined appearing when I run the project. I can't find exactly where is the problem I send 3 ...
1
vote
1answer
16 views

How to pass state between routes in NEXT JS?

I have a data inside an object in my page. I want to redirect from that page to another page along with the data like the code below const redirectAppointmentStep1 = (value) => { router.push({ ...
0
votes
0answers
16 views

What is the best and fastest way to check if the site is online

I have made an app that extract some data of other sites. Each site has a Parser Specific to it. Now sometimes in the future those sites stop working or may have some problem. I would like to be able ...
-4
votes
1answer
24 views

This React app is not displaying the Zero message when this.state.msg is 0?

import React, { Component } from 'react'; import App from './App'; class Car extends React.Component { constructor() { super() this.state = { msg: 0 ...
0
votes
2answers
26 views

Convert plain string to html in react

**How can I convert this plain text to HTML in reactjs? **Text:** The standard Lorem Ipsum passage, used since the 1500s Lorem ipsum dolor sit amet, consectetur adipiscing elit It automatically ...
0
votes
0answers
8 views

How to scroll messages to bottom on click on Send button in Chat App?

In a React project, I've created Chat Section. All designing and functionalities done, except that when messages are sent it doesn't automatically scroll down. What could be the best possible solution?...
0
votes
0answers
8 views

How to Minify CSS with Webpack when using Tailwind

When using ReactJS, Tailwind suggests using CRACO (Create React App Configuration Override). My best attempt based on this blog post on minifying css names and the CRACO docs has led me to trying the ...
1
vote
2answers
33 views

Redirect from one page to another in react [duplicate]

I am trying to move from one-page App.js to addWork.js. I added a button to redirect the user to addWork.js in App.js but the strange thing is that the page is redirecting to the same page(App.js ...
1
vote
0answers
21 views

Getting problem to access startDate and endDate using materialui-daterange-picker package in react js

Here, I have created the redux to store the value and access it anywhere, and yes I am getting the value when the method is getting execute (getting value by the console.) but not able to receive it ...
1
vote
0answers
8 views

Jest: test mock dispatch inside a function on click of a button

I'm trying to test that a dispatch is firing inside of a function that is called when a button is clicked. I'm not using Enzyme. IceCream.tsx const clickBuyIceCream = () => { dispatch(...

15 30 50 per page
1
2 3 4 5
19270
在线观看国产午夜福利片,婬荡少妇21p,欧洲熟妇牲交,五十路熟妇高熟无码视频