python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Write the test case for useEffect with Fetch API and useState in react
Following are my code which includes the fetch API(getData) call with the useEffect and once get the response it will set the result into the setData using useState
I am trying to write the test case ...
Krushna Kumar
Votes: 0
Answers: 0
React dom , getElementByID
how can we set normal DOM manipulation into react DOM
here is my code
had tried in different since I got continues error as

K S Sabarinathan
Votes: 0
Answers: 3
How to turn React Component able to receive variables
I am trying to create a React Component and pass a string variable when calling it right in the ReactDOM code.
tableInfoById.tsx
const TableInfoById: NextPage = (name: string) => {
return (
...
scriptv9
Votes: 0
Answers: 1