Skip to main content

Command Palette

Search for a command to run...

What is JSX in React?

Published
•1 min read•View as Markdown
N

I am React JS developer from India

JSX is a syntax extension for JavaScript that lets you write HTML-like markup inside a JavaScript file. It allows you to write HTML directly within JavaScript, which makes your code more readable and maintainable. JSX combines the expressiveness of JavaScript with HTML-like syntax, enabling you to write components in a declarative way. Despite looking like HTML, JSX is ultimately compiled into JavaScript.

const App = () => {
  const element = <h1>Hello, world!</h1>;
  return (
    <div>
      {element}
    </div>
  );
};

Revisiting reactjs

Part 4 of 6

Revisiting React JS is a series which is one thing I am trying to bring in for those who already working with React JS. In this series I will brush up my react js knowledge with the help of internet, documents and using chat gpt.

Up next

Beginner's Guide to Setting Up a React Development Environment

Day 2: Q. What are the things you need before you start practicing React JS? Ans: Node JS and VS Code ( or any code editor/ IDE). In order to run our React application in browser we need to convert React code into browser understandable code. In orde...

More from this blog

Nandkumar Gangai's Blog

17 posts