V
V
valtermild2019-08-04 00:45:11
React
valtermild, 2019-08-04 00:45:11

How to pass parameter to react component?

Good day, tell me, there is a gallery component, I want the images of this gallery to be different on different pages, i.e. it turns out to make several arrays of images and pass them as props or states, with react not very much, how to implement?
https://codepen.io/anon/pen/aeLQva

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Kostyaev, 2019-08-04
@valtermild

https://codesandbox.io/s/runtime-currying-v27yd - here is an example, I hope you understand)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question