Using react to make a Single-page application has a function of uploading user’s head image and previewing it in real time. Now there are two questions to ask Daisuke:
1 Uploading avatar should need clipping. Most clipping plug-ins on the Internet are based on jquery, but I don’t want to use jquery. Is there any way to replace it?
How to realize the function of real-time preview? Should pictures be uploaded to the background first, and then returned from the background to insert the picture data into the specified location?
I hope you can solve my doubts greatly, thank you very much, good life peace ~ hee hee …
Try this component