Full example source code please #386
-
Page https://rpearce.github.io/react-medium-image-zoom/?path=/story/img--regular looks very useful since it uses separate buttons to do variable zooming, but I can't seem to reverse engineer exactly how this is done. Could someone post the React source for this please? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi, @thoffmann-fms! I'm the author and maintainer of this open source, BSD-3-license library. I'm not quite sure I understand your question, so can you help me so I can help you? Are you asking for help on how to use this library in your code, or are you asking how to copy and paste the source code and use that? In either case, I recommend including attribution via the LICENSE file in the project. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for responding. I would like to see the React source specifically for the URL above. It looks very useful, but I can't reverse engineer what the various props, events, listeners, etc. would be by reading the resulting JS via browser Dev Tools. |
Beta Was this translation helpful? Give feedback.
-
@thoffmann-fms, are you interested in "reverse engineering" this for learning / academic purposes? If you're looking to copy the code without proper attribution, I believe that would be in violation of If you are interested in simply browsing the source code, you can do so here:
Additionally, if you are merely curious about the techniques used here, I can try to answer any questions you may have. |
Beta Was this translation helpful? Give feedback.
If you're using version
5.1.2
, you should only wrap the<Zoom>
around a single image element.The Basic Usage section in the README should cover exactly how to use this component. Can you give that a read and see if that makes sense and solves your problem?