Category "reactjs"

What is sunproxyadmin service?

I was trying to run a front end project locally after pulling it down from git. After which I got the following error: vents.js:183 throw er; // Unhandled 'e

How do I disable future dates in reactjs?

I have not use any datepicker still code is working fine. I have selected input type to date and everything's working fine. Now I want to disable future dates.

Do I need to clone props before using/mutating it in React?

Imagine a component has props and the props have nested objects and arrays. In the child component, if I need to copy to props.nestedObject or props.myArrays to

How to get x-amzn-oidc-data in Expres/NodeJs backend with ALB and Cognito?

I have setup and application which uses a React front-end and Expres/NodeJS back-end. There is an ALB in the mix as well. So, here is how the flow goes: The ALB

Authentication between different applications through sessions (React + Express)?

I'm developing a React + Express website and I'm in doubt on how to implement the login functionality since it depends on another application. Let me explain it

AntD custom color for active tab without css/less,

I am trying to change the background color for the active tab from AntD tabs, I can achieve that with less file by targeting: .ant-tabs-tab.ant-tabs-tab-active

Passport.js isAuthenticated() always returns false when on heroku, but works properly when server is run locally

I am using passport.js for authentication as well as express-sessions to store cookies on the client. Additionally, my client is a react app. I still am not sur

react route component is not rendering anything

I created my app with create-react-app and tried to use react-router on it. but it's not working at all. I am using react-router-dom 5.3.0 version. But if I typ

Re render ReactMarkdown

Steps to reproduce: Using props children and update state component in which ReactMarkdown is placed. Expected behavior: I expected that when processing the sam

Main differences between lit-element & React [closed]

Looking into React code it seems more similar to "Lit-Element" code, Both can be used to create web components. It is very helpful if someone

Moving react app created with create react app to another computer

I used Create React App to create a React application on one computer. No problem. But how do I move the code to another computer (i.e. the entire folder stru

Delete item from mongoDB from client side

I've created a React app where you can post vinyls you have in your collection. Now I've implemented a button that is able to remove the selected item from the

How to delete a list item from ant design List?

I want to show a list of data in ant design List. I also want to add a delete or remove button at the end of the each list item. I am unable to find any API fo

react-router-dom Link on click close bootstrap modal window

I need to close the modal window by clicking on the link. My modal window: export const ModalWrapper = (props) => { const { children, title, modalName }

"Firebase Hosting Setup Complete" after deploy

I've been trying to fix this issue for 2 days now and I couldn't find a viable solution yet :( I am deploying my React Single-Page App onto Firebase Hosting but

ES6 modules - imported constants undefined if not in React component

The only similar question I have found is this one but I can't see how would I have caused a circular dependancy in this case: I have a file exporting constants

Why npx create-react-app is showing "the project was bootstrapped with an old unsupported version of tools"?

I recently switched to Ubuntu, whenever I create react app it's giving me this note, and the app it's creating is a class component. ankit@gram:~/Documents/Deve

When does create-react-app obfuscate or minify code?

I have kind of a basic question about webpack and react that I can use help with (around code obfuscation/uglification). I am using create-react-app for my ap

Unsure if an existing project is using blob files of some other data format

I am working on an application that was created by a colleague that is no longer with the company. I am trying to open what I believe is a PDF in blob file form

Why is React.Fragment causing the console error: Results Warning: React.createElement: type is invalid

I have the following: const MyField = class extends React.Component { ... renderField = (reduxFormFieldProps) => ( <React.Fragment> <Fo