Lextree Simply the best software for managing legal entities and documents.
The Berkman Letter Practical analysis and commentary for business, law, and more.

write a simple React component that takes one prop named "input".

0
stars
0
answers
209
views
write a simple React component that takes one prop named "input". There are three types of input: 1. If the prop is a falsy value, return a live-updating date and time (update every second) in a div. Please pretty-format the date and time. Use the native JavaScript Date object. 2. If the prop is an array, return a list of divs, each containing one element of the array.