menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

React

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

Channels
Team
Show previous messages

March 5, 2021 at 7:09pm
Hi guys! Im trying to use a Loader component I created in a react app, I can use it in some of the pages and it works just fine, but In some pages it just not working, I guess Im failing in sending some props but im not understanding exactly what im doing wrong...

March 7, 2021 at 11:32am
Can anyone help me for multi search in material ui react table ?

March 10, 2021 at 9:08am
hello, does anyone develop a project about micro frontend ?
Which component services do you use when developing microfrontend?

March 11, 2021 at 12:56pm
Hi every one! I'm New in this group. I'd like to know some thinks about hooks. Does component Is mounted every time state variable change ? Thanks for help

March 20, 2021 at 2:08pm

April 20, 2021 at 10:23pm
Hi everybody.
Any body can help me?
I have trouble with upgrading existing react project.
I get this error; React Hook "useState" is called conditionally. React Hooks must be called in the exact same order in every component render react-hooks/rules-of-hooks.
But there is no conditionally call or nested functions.
Edited
I am not a beginner but I can not fix this error.
Please help me any body.
That was working on react 16.13 but return that error on react 17
Help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

April 22, 2021 at 2:52am
could you show your code?

May 11, 2021 at 7:40am
Hi Guys this is my code, in this i am facing one issue after clicking on AudioCard the audio is not playing in first attempt after clicking second time this is working. Can anyone help me with this?
send me code

May 11, 2021 at 3:29pm
I think you should handle playingSong state by useEffect hooks. like this:
const playSong = () => setPlayingSong(require(`.../sound/${title}.mp3`));
useEffect(() => {
if(playingSong) {
const audio = new Audio(playingSong);
dispatch({
type: "PLAY_SONG",
currentPlayingSong: audio
});
audio.play();
}
}, [playingSong]);
Edited

May 13, 2021 at 12:50pm
Afternoon 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.
signup = (userInfo) => {
return todoAxios.post("/auth/signup", userInfo).then((response) => {
const { user, token } = response.data;
localStorage.setItem("token", token);
localStorage.setItem("user", JSON.stringify(user));
if (this.state.user && Object.keys(this.state.user).length === 0) {
this.setState({
user,
token,
});
}
return response;
});
};
Edited

May 22, 2021 at 12:09pm
how can i deploy a reactjs spring boot , mysql application for free. PS: it's my first time trying to deploy something. thanks.

May 24, 2021 at 7:23pm
You just want to deploy a react app? Try using Vercel.
Show more messages