Should I use state or props React?

props are a way of passing data from parent to child. If you’re familiar with the concept of state, don’t use state at all to build this static version . State is reserved only for interactivity, that is, data that changes over time. Since this is a static version of the app, you don’t need it.

Sizin İçin Seçtik  Tesla araba ne zaman çıktı?

Leave a Reply

Your email address will not be published. Required fields are marked *