D
D
deppa11182022-02-04 13:26:49
React
deppa1118, 2022-02-04 13:26:49

How to create your own module for React?

Good afternoon! Despite the rather long use of react, there are still significant holes in my knowledge. So I set myself the task of implementing a module similar to fancyapps with minimal functionality.
How it should work:
We throw the container for the modal ( ) into the root app.js file <ModalGallery/>. Next, on one of the screenshots, I add 3 containers for images ( <ModalImg/>) with prop (code="gal1" src=...) this container, like the img tag, displays an image, but when you click on it, the modal container (described above <ModalGallery/>) should open, it should receive images from all <ModalImg/>with the same code as the clicked one, all in array format.

Well, the question itself:
Could you send tutorials that describe how to create similar and not similar modules for React. Thank you in advance. (I was never able to find anything, although I may have been looking in the wrong place).

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question