React watercooler
November 16, 2017 at 9:01pmReact watercooler
November 16, 2017 at 9:01pmFebruary 10, 2021 at 10:05am
February 15, 2021 at 10:05am
March 2, 2021 at 7:56am
March 5, 2021 at 7:09pm
March 7, 2021 at 11:32am
March 10, 2021 at 9:08am
Which component services do you use when developing microfrontend?
March 11, 2021 at 12:56pm
March 20, 2021 at 2:08pm
April 20, 2021 at 10:23pm
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.
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
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]);
May 13, 2021 at 12:50pm