Category "reactjs"

Nextjs Idle time

I have a Next.js platform. On refresh, it takes around 6 seconds to load the page. So I was debugging to find out where the delay was to know what I could do to

How many render operations does act() support?

I am using act function from library https://testing-library.com/docs/react-testing-library/intro/. At this point I have something like this: await act(async (

Why are react-table pagination and filter reset by changing its data?

I added 4 custom columns to my table columns list using its Cell property; each of them in each row contains a checkbox that changes a specific property of the

How to use a third-party API inside next/api?

I am new to NEXTJS and creating a weather application .I am using a openweather api but how can I use it inside the next/api. I had tried by creating a file tod

how to use a font from google font just to be used in one react component with material UI?

i got only one Typography element that uses a different font than the rest of the application , could someone advise what's the best way to get the font from go

Formik - Trigger validation from very first keypress

On the following StackBlitz I have a very simple form validation. The validation is done when the user clicks the submit button. https://stackblitz.com/edit/rea

Headings must have content and the content must be accessible by a screen reader

I've created a react web application which has an HTML body content inside home.js as below, class Home extends React.Component { render() { return ( <div&

RecoilJS RecoilRoot not accessible within ThreeJS Canvas

Hoping someone can help me out here. Im quite new to RecoilJS so if Im missing something obvious, please let me know. I am trying to manage the state of 3D obje

How to display initialValues for material-ui autocomplete field?

I use the autocomplete field of material-ui (v5) and formik to generate my forms. On this form, I have some lists defined as constants. I use an api to get the

ReactJS app inside Laravel's public folder .htaccess configurations

I am hosting a React application inside the public directory of a Laravel app where: /public_html/ app bootstrap config

"Unable to find drag handle" mistake in react-beautiful-dnd

I have a list of cards that want to drag and drop. I want the user could drag and drop by pressing on the specific place (div) on the card (not the whole card

(React) Easiest way to reveal on scroll?? (Scroll Fade)

I'm trying to figure out the best way to have a scroll fade in on my webpage. I tried using React Reveal however it breaks everything if you are on version 17 o

Render a react component in a new window

I am developing a Certificate Management System where after all the processes have been done, the user may print a certificate. I am struggling to implement suc

Configure Nginx as Reverse Proxy for Nodejs App on Jelastic

I've tried using standard nginx and nodejs configurations following many documentation, but unlike other tutorials there are several files that don't appear in

useSWR doesn't work with async fetcher function

I am using SWR to fetch data to populate a table with. I am using the following code: const { data: items, error } = useSWR(fetchAllItems.name, fetchAllItems)

getting error when sending files to backend react node js

I am getting error of undefined when i send a file from react to backend, i am unable to understand the error. i am sending a image which will be uploaded in cl

How to format reference line in lightweight charts?

How to format reference line in lightweight charts? Following is lightweight chart. As you can se the horizontal line market (US$449,308,044) is taking so much

Chakra UI icon not positioned inside Input

I'm trying to position an icon correctly in the middle of an input, where that input has size="xs". However, all my attempts have failed, and the icon keeps bei

Refresh React useAuth0 user after API user data update

I have a web React application accessing users data through useAuth0 hook (from npm auth0-react package). In the profile page, I permit the connected user to ch

I am getting "'navBar' is defined but never used no-unused-vars" warning .How to solve it? (React App)

import './App.css'; import Search from './components/HomePage/SearchBar'; import navBar from './components/common/Header.js'; import footer from './components/c