S
S
Sergey2015-09-24 11:54:10
React
Sergey, 2015-09-24 11:54:10

JSX unfamiliar syntax. Where to read?

Explain to me the old man what kind of syntax is this,

const routes = ( /* тут понаписано */) 
// или вот такое 
let foobar = ( /* и тут понаписано  */)

I look at the description https://developer.mozilla.org/en-US/docs/Web/Java... and see that this is not possible.
What is it and where does it come from? Where can you read?
Well, in addition, I stumbled upon something like "@withStyles" in one application with react. What is it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Ukolov, 2015-09-24
@alexey-m-ukolov

Good morning, this is ES6 .
habrahabr.ru/post/175371

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question