Firebase Functions cross projects invocation

Our team is developing an appraisal feature that allow a property’s owner to be able to appraise their premise base on some of the property’s characteristic. We have already had a system that will…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




What is JSX? Find out about the syntax used to write code in ReactJS

As a student learning front-end development, your first choice after HTML, CSS, and Javascript is a framework that will make it easy to create the first project.

Component’s files will have a specific extension, which is not familiar for non ReactJS developers, it’s .jsx. Why it’s not .js, what’s the specific JSX syntax, which is used in ReactJS, and in what way it’s better than the traditional JS?

That’s exactly what’s I like to explain to you in this article. I’m going to tell you what is JSX, what it’s used for, how to use for loop in JSX, and what’s the difference between JSX and HTML.

And of course, if you prefer watching than reading, enjoy the video version of this article on our YouTube channel.

JSX is a syntax extension to Javascript used in ReactJS that allows writing Javascript that looks similar to HTML. In other words, it is a kind of templating language but with the power of Javascript.

Let’s take a look at the JSX code example, so you know how it looks:

Right now, you can see the JSX code inside the render() function. It’s really similar to HTML. After the compilation, the JSX is translated to regular Javascript function calls, and here’s how it looks:

Add a comment

Related posts:

Skipping Memories

I am getting close to turning 55 years old. My memory is skipping out on me much like a rock thrown upon a pond. I know as the rock stays solid and whole so will my mind for now. But, my recall of…

Knee Pain Going Down Stairs?

After reading this article you will have a better understanding of why going down stairs is often more painful than going upstairs.

How to Use Python to Download Videos from Youtube

There are multiple websites on the internet that download videos and audio from Youtube for its users. Using these websites might feel like a simple way of downloading your favorite videos, but the…