---
title: "Discussion on \"React Image upload\" | Hashnode"
description: "Discussion on \"React Image upload\". import React, { useEffect, useRef, useState } from \"react\";\nimport classes from \"./ImageUpload.module.css\";\n\nconst ImageUpload = (props) => {\n  const imageRef = useRef();\n  const [file, setFile] = useState();\n  const [imageUrl, setImageUrl] = useStat..."
url: "https://hashnode.com/posts/react-image-upload/6077efdda3407a32d7042cb7"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [React Image upload](https://thilina.hashnode.dev/react-image-upload?utm_source=hashnode&utm_medium=feed)

import React, { useEffect, useRef, useState } from "react"; import classes from "./ImageUpload.module.css"; const ImageUpload = (props) => { const imageRef = useRef(); const \[file, setFile\] = useState(); const \[imageUrl, setImageUrl\] = useStat...

Apr 15, 2021 · 1 min read · thilina.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)

## Written by

[thilina dilshan](https://hashnode.com/@Thilina)

@Thilina

  
[View profile](https://hashnode.com/@Thilina)

Software developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
