Naveen DA
May 5, 2022

--

In the last example,

UseEffect listen the "text" state changes and then it set the value again and again....

So removing the useEffect will fix the issue.

```import React, { useEffect, useState } from "react";

const App = () => {

const [text, setText] = useState("");

return null;

};

export default App;```

--

--

Naveen DA
Naveen DA

No responses yet