Is there any component to create a preview of an image?

Something like this component made with ReactJS: