Amazon interview question

Build React component from scratch