Added a word counter to the Writing exercise

This commit is contained in:
Tiago Ribeiro
2023-09-10 10:33:07 +01:00
parent 42a0821677
commit cca94db9bf

View File

@@ -136,6 +136,7 @@ export default function Writing({
placeholder="Write your text here..."
spellCheck={false}
/>
<span className="text-base self-end text-mti-gray-cool">Word Count: {inputText.split(" ").filter((x) => x !== "").length}</span>
</div>
</div>