Added a word counter to the Writing exercise
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user