Master de II. ULL. 1er cuatrimestre. 2020/2021
input field inside the App component with a change listener which ouputs in a paragraph the entered textValidationComponent which receives the lengthof the entered text as a prop.ValidationComponent should conditionally output Text too short or Text long enough in a paragraph dpeneding whether the text length is less than or greater than some number, let us say 5.CharComponent with a div and style it as a inline box. Here is a suggestion:
1
2
3
4
5
6
7
{
display: inline-box;
padding: 16px;
text-align: center;
margin: 16px;
border: 1px solid black;
}
Appcomponent render a list of CharComponent, where each CharComponent receives - as a prop - a different letter of the entered text from the initial input fieldCharCompomentit should be removed