K
K
Kafkae2019-03-07 09:42:48
JavaScript
Kafkae, 2019-03-07 09:42:48

How to forbid something to do if props is not registered?

Hello! I have an external props isLoading, but it is silent, although for example the same global props reacts to everything. How can I make sure that if there is no isloading, the nanobar is not loaded? https://codesandbox.io/s/9j466y4rlp . Thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Okhotnikov, 2019-03-07
@Kafkae

You have isLoading set to default, remove it from defaultProps or set it to false and you'll get what you want)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question