I am building simple word search with react and I am facing a problem with Japanese Kanji Whenever I try to search a Kanji in my input the web app become blank. Is there a way to check a kanji characters in react. Please tell me.
{Data.filter((post) => {
if (query === '') {
return;
} else if (post.romaji.includes(query)) {
return post;
} else if (post.kana.includes(query)) {
return post;
} else if (post.meaning_mm.includes(query)) {
return post;
} else if (post.kanji.includes(query)) {
return post;
}
}).map((post, index) => (
<div className="box" key={index}>
<h2>{post.kanji}</h2>
<p>{post.kana}</p>
<p>{post.meaning_mm}</p>
</div>
))}