I
I
ivanDoligov2020-06-10 13:02:21
React
ivanDoligov, 2020-06-10 13:02:21

What rule needs to be added to the linter so that it would be possible to check and call the function through the new syntax (?.)?

Good afternoon! Can you please tell me what rule needs to be added to the linter, so that it does not prohibit the use of the new syntax to call the function by preliminary checking? and write like this: Or maybe there is information where you can read about it? (I can not find)

(this.props.addFun) this.props.addFun()


this.props.addFun.? ()

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
ivanDoligov, 2020-06-10
@ivanDoligov

Question removed! https://dev.to/ismail9k/use-javascript-optional-ch...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question