For this challenge, you'll have to create a React application from the ground up. The objective is to create an application that can accept a user inputted word, and display the word back to the user with the vowels highlighted. The goal of this challenge to test your initial React knowledge... good luck!
To create a React application, we must run this command in our terminal:
$> npm create vite vowels
$> cd vowelsWe should begin adding our changes to the src/App.jsx component, and rendering other components (as needed) from within our App component's render logic. App is the top-level component for our React application.
And to finally start our app:
$> npm run devYour application should contain:
- An input that allows the user to enter in a word
- A button that allows the user to submit their entered word
- An element that displays the entered word
- Functionality to display the submitted word
Be sure to separate your logic into different components here (i.e. don't put all of your logic in App.js)
Can you add the following to your application:
- Updated functionality to highlight all vowels in a displayed word, and show the vowel count for each word
HINT: use CSS!
NOTE: class is a reserved keyword in JavaScript, so you'll have to use className for setting a CSS class property.
Can you add the following to your application:
- Updated functionality to keep track of all words entered in by the user (and displayed back to the user), with highlighting & counting the vowels as before for each word