A
A
AlexRayn2020-05-25 16:29:34
React
AlexRayn, 2020-05-25 16:29:34

How to pass props through a class?

https://codepen.io/loozmax/pen/ExVRaew?editors=0110

You need to use specific classes.
I know that it is possible to transfer through const , but is it possible the way I wrote?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
alex4answ, 2020-05-25
@AlexRayn

through which const ?
what are you speaking about?
props in classes?
just like in functional components, only this.props
would have looked into the documentation at least

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question