reactjs Questions
3
Solved
I already have a state with this:
this.setState({
conversation:
(
<div>
{conversation.map(element => {
if (element.id === this.props.id) {
return(
<div className="row msg_conta...
2
Solved
I want to store React component in React state but I think it is technically wrong. What you think about that?
Example
const LayoutContext = createContext(null as unknown as {
setSidebarCont...
V2 asked 26/9 at 11:56
4
Solved
I've been dealing for a while with this problem and still can't tackle it.
I'm using React-query as a server state management library and I'm trying to get my UI state synchronized with my server s...
Cedillo asked 18/10, 2022 at 16:47
1
I am building an application using react and material-ui. Material-ui components comes with its custom classical blue-grey google style colors and I want to modify all of them with my custom ones. ...
Ira asked 26/4, 2022 at 16:25
6
Solved
I have a three.js component that should only be rendered client side, how do I do this with Remix? Does Remix expose any utilities to help determine if we're in a server or client context? Could no...
Fondle asked 11/3, 2023 at 16:45
2
Solved
How can I override a rule of a class which has high specificity?
For example, the .MuiAccordionSummary-content.Mui-expanded class in the AccordionSummary
const useStyles = makeStyles(() => ({
e...
Lioness asked 14/9, 2020 at 8:36
3
Solved
I am controlling user authentification in my next app with next-auth library
I am using the credentials provider. First I call the login endpoint which returns the user informations then I take the...
1
Solved
In React I am using @react-three/fiber for the 3D stuff.
There are a lot components that don't support declarative way of doing things and require refs and imperative code (e.g. CameraControls from...
Touristy asked 24/9 at 12:51
2
Solved
I am trying to set Antd Modal height to 1000px by default but its not getting applied. Please suggest where I might be doing wrong. Below is my code for the Modal.
<Modal style={{ height: "...
2
Solved
I am having some troubles integrating a component from the outside library 'react-calendly', the PopUpButton widget specifically, that requires the parent DOM node to be inserted into. My current u...
3
I am creating a DataGrid where I want to show the values of ready_by and name that you can see in this picture:
In the code, I have configured it in this way: (focus on the last two)
const columns...
Lemures asked 30/3, 2022 at 16:2
2
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"server": "nodemon backend/server.js",
"client":...
Crackling asked 29/1, 2021 at 18:28
7
Solved
I have a problem using MUI with react-router-dom v6.
import ListItem from '@mui/material/ListItem';
import { NavLink } from 'react-router-dom';
<List key={index}>
<ListItem
component={N...
Softspoken asked 4/3, 2022 at 11:2
6
Solved
I created a jsx variable to embed a video into my html.
Every other answer says to include
muted
defaultMuted, and
playsinline
(which I already have).
The videos autoplay in safari, chrome and f...
Finch asked 19/12, 2019 at 6:57
6
I am new to React;I am learning about React Form. I understand the code but I do not really understand the concept behind and why we use this line " onChange={(e) => setName(e.target.value)...
Indiction asked 8/2, 2022 at 18:33
4
I am building a chat app and would like to write integration tests using react-testing-library and can not figure out how to mock socket.io-client's socket.on, socket.emit, etc.
I tried follow thi...
Bradwell asked 3/10, 2019 at 2:44
2
Solved
So i am writing tests for one of my react projects and i just decided to use mock service worker to mock my api calls and i am trying to mock a login endpoint.So i am trying to simulate a login err...
5
I am deploying my React app to firebase hosting. when I create firebase init and select all options I am getting this error.
C:\Users\user\git\Apps\screem>firebase init
######## #### ######## ...
Interurban asked 3/3, 2021 at 11:43
4
I am beginner to redux toolkit. I am runnig to this error when I add one more Slice to my application.this is the error in console
I am getting this issue when I added userSlice.ts. Ther was no iss...
Wheeler asked 4/9, 2021 at 4:24
2
Solved
I have a single landing page nextJs application it is possible to redirect all * to specific routes as we do in react-router like this how can I do exactly the same in nextJs
<BrowserRouter>...
Shanna asked 6/4, 2022 at 15:19
6
Solved
I implemented antd tooltip but need to change the background color and text color of it but I am unable to achieve that. I tried to do using "overlayStyle" provided by antd tooltip compon...
5
For frontend react, I am using ReactKeycloakProvider as a way to require user to login, then token should be stored into Keycloak from 'keycloak-js'.
<ReactKeycloakProvider
authClient={MYKEYC...
Offertory asked 12/1, 2023 at 3:40
2
Description:
The error is thrown when I add a custom link into a slate editor at current cursor position and use tab or space after the inserted link.
This is the code I am using to add my custom l...
Athalia asked 20/12, 2021 at 15:45
7
I am using exceljs npm to export data in excelsheet. As my content in the cell is huge so I wanted text to be wrapped in the cell and should take enough height to show full content. I tried by givi...
Stelu asked 25/2, 2021 at 8:26
4
I am pretty new to web dev and I am currently trying to build something with React + Vite.
But when I run npm run dev the page shows me a completely white screen like this:
And there is no error in...
Apgar asked 9/10, 2022 at 3:38
© 2022 - 2024 — McMap. All rights reserved.