« first day (2864 days earlier)      last day (1238 days later) » 

2:31 AM
💤
 
 
7 hours later…
 
2 hours later…
 
3 hours later…
1:44 PM
Hi,
I'm using ReactJS and want to hide/show a div when the String inside a state is not empty.

So far I'have tried to do the following :

const [keywords, setKeywords] = useState();

other code and functions
.....
return (
{{textFromFile}.toString().length > 1 ?
<div className="extractedText">
This is your uploaded text: {textFromFile}
</div>
: null
}
</div>
);
 
1 message moved from JavaScript
 

« first day (2864 days earlier)      last day (1238 days later) »