menu

React

A community of developers, designers and others who love React.js. ⚛️

Channels
Team
Posts
Members
Info

Persisting logged in the user

Evening lovely folk - i'm making my signup page a protected route, (so only registered users can make accounts for new users). I'm having trouble with persisting the state of the current user, when a new user is registered it replaces the details of the current logged in user.…

thumbsup
0
message-simple
2

Can I send a state value(for example an imageId) to another another component?

This id is dynamic and each time it's being changed. I mean by this method: <AnotherComponent image={pathAndNameOfImageFile} />

thumbsup
0
message-simple
4

suppress expected Axios error messages react-testing-library

How do I suppress expected Axios error messages when testing error states with react-testing-library?

thumbsup
0
message-simple
3

Test no update state input

Help I have this component but I don't know because show This field is required. if the value input is added, I am using Formik

thumbsup
0
message-simple
3

#help progressbar start again when we click a button onClick

//how it's possible if i click a button progress-bar start from 0 to done value //code:) thanks is advance import React, { useState, useEffect } from 'react'; …

thumbsup
0
message-simple
1
Deleted·12d# Help

React formik select npm issue

I am using react formik and react select package I am integrated both also working fine I am using create form and update form same create are working fine on update value doesn't bind please help it

thumbsup
0
message-simple
2

getting validateDOMNesting(...): <tr> cannot appear as a child of <div>. and...

I getting Warning: Cannot update a component (NewLayout) while rendering a different component (Unknown). To locate the bad setState() call inside Unknown, follow the stack trace as described in https://reactjs.org/link/setstate-in-render at…

thumbsup
0
message-simple
0

Submit Form Data using Axios

Concept I have a form and I want to submit it's data to my Google Sheets. For this I am using Axios and a service called Sheeton. But for whatever reason the data is not posting. Here is the Sheeton Docs Things I want to do …

thumbsup
2
message-simple
7

Inserting script with a function in react app

I have this script I need to append this to my react application when a component loads, at the moment I can create the script tag, my issue is adding the function inside, any help please?

thumbsup
0
message-simple
0

Adding SSL cert to production React app

I'm serving an app on a ubuntu image hosted on a aws ec2 instance using nginx and was going just great until I start to the final task to add ssl to it... I used certbot to generate the certificates but the redirect never happens and my domain just get timeout error (without ssl…

thumbsup
0
message-simple
2