Skip to content

Frontnerd/React-lists-conditionals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React 16.7 List Conditionals exercise

  • Create an input field (in App component) with a change listener which outputs the length of the entered -text below it (e.g. in a paragraph).
  • Create a new component (=> ValidationComponent) which receives the text length as a prop
  • Inside the ValidationComponent, either output "Text too short" or "Text long enough" depending on the text length (e.g. take 5 as a minimum length)
  • Create another component (=> CharComponent) and style it as an inline box (=> display: inline-block, padding: 16px, text-align: center, margin: 16px, border: 1px solid black).
  • Render a list of CharComponents where each CharComponent receives a different letter of the entered text (in the initial input field) as a prop.
  • When you click a CharComponent, it should be removed from the entered text.

Hint: Keep in mind that JavaScript strings are basically arrays!


React 16.6 - The Complete Guide (incl. React Router & Redux) Academind/Udemy https://www.udemy.com/react-the-complete-guide-incl-redux/

About

React 16.6 - The Complete Guide (incl. React Router & Redux) course exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published