Skip to content

priteshlad14/ReactJS-Interview-Question

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

React Interview Questions & Answers

Reference

Table of Contents

No. Questions
Core React
1 What is React?
2 What is JSX?
  1. What is React?

    React is an open-source front-end JavaScript library that is used for building user interfaces, especially for single-page applications. It is used for handling view for web and mobile apps.

    ⬆ Back to Top

  2. What is JSX?

    JSX is a XML-like syntax extension to ECMAScript (the acronym stands for JavaScript XML). Basically it just provides syntactic sugar for the React.createElement() function, giving us expressiveness of JavaScript along with HTML like template syntax.

    In the example below text inside <h1> tag is returned as JavaScript function to the render function.

    class App extends React.Component {
      render() {
        return(
          <div>
            <h1>{'Welcome to React world!'}</h1>
          </div>
        )
      }
    }

    Reactjs.org JSX reference

    w3School JSX reference

    ⬆ Back to Top

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors