Answer the question
In order to leave comments, you need to log in
How to check if a note is not found?
Here's how I make note routes:
{notesRedux.length ? notesRedux.map((item: any,index: any) => {
return (
<Route exact path={"/note/"+index} key={index}>
<NoteText
title={item.title}
time={item.time}
text={item.text}
create={false}
/>
</Route>
)
}) : false}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question