Create a React functional component that converts and image upload to base64.