H
H
hulktoster2019-08-02 13:07:09
React
hulktoster, 2019-08-02 13:07:09

What do these symbols do in React?

React code questions:

<button className={`tablinks ${i === active ? 'active' : ''}`}
            onClick={openTab}
            data-index={i}
>{n.title}</button>

1) I often see the $ symbol in React code, what does it do in specific code? and in general in React what is it used for?
2) Symbol ? Is this an alternative to the if condition? whereas the code I wrote would look like with if? I just want to understand such a react construction but c if to make it more clear.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0xD34F, 2019-08-02
@hulktoster

1. https://developer.mozilla.org/ru/docs/Web/JavaScri...
2. https://developer.mozilla.org/ru/docs/Web/JavaScri...
Forget about react for the next six months and march to learn js.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question