Something About React..

  1. What is React:- React is an open-source, front-end, JavaScript library for building user interfaces or UI components. It is maintained by Facebook and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications.
  2. Is React a framework:- React developers describe it as “a javascript library for building user interfaces”, But most people call it a framework. But I think React is just a library because you need to make all decisions by yourself. It focuses on helping you to build user interfaces using components.
  3. Is it JavaScript:- It’s important to point out that React itself is written in JavaScript, which could lead one to think that writing React is just writing JavaScript code. React is a library that defines the way apps are written. It does this by setting very clear rules about how data can flow through the app, and how the UI will adapt as a result of that changing data. javascript code, on the other hand, can be thought of as a scripting language that doesn’t set any rules about how data can be defined. So React is Javascript.
  4. What JSX:- JSX stands for JavaScript XML. because JSX makes it easier to write and add HTML in React. ( const book= <h1>hello, Book<h1>; ) This tag is not js string or not HTML. It is called JSX. JSX allows us to write HTML elements in JavaScript and place them in the DOM without anycreateElement() and/or appendChild() methods.
  5. Is it declarative:- You simply provide React with information on how all the components should look depending on specific parameters and it takes care of the rest, making appropriate changes to the view according to the changes in state. This is called “declarative programming”. React makes it painless to create interactive UIs. Design simple views for each state in your application, and React will efficiently update and render just the right components when your data changes. Declarative views make your code more predictable and easier to debug.
  6. What is React Components:- Components are like functions that return HTML elements. React components are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML via a render() function.
  7. React Props:- React Props are like function arguments in JavaScript and attributes in HTML. props are immutable. the child components should only pass data from the state using props. React is a component-based library that divides the UI into little reusable pieces. In some cases, those components need to communicate and the way to pass data between components is by using props.
  8. React State:- The state object is where you store property values that belong to the component. The state is plain JavaScript objects. It holds information that influences the output of render.
  9. What is React Native:- React Native is a cross-platform mobile application development framework that lets you build native iOS and Android mobile applications. It is basically a JavaScript framework used to build a mobile application. React Native is similar to React, but it uses native components instead of using web components as its building blocks.
  10. How To Install React App:- In order to install your app, first go to your workspace and run the following command. ( npx create-react-app my-app ). The installation process may take a few minutes. After it is done, you should see a folder that appears in your workspace with the name you gave to your app.

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

JQuery Tutorial

Misc — Building a SaaS using Django and Vue.js — Part 10

Asynchronous VS Synchronous Function for kids

Using Neogma to build a type-safe Node.js app with a Neo4j graph database

Calls “Users.createOne” with some properties. Calls “.relateTo” on the instance. Logs the age property of the instance.

Ember.js 2020 Crash Course: Part 2

How to Track Calories and Macros With MyFitnessPal https://t.co/9GwzK16mRM

Why you should learn JavaScript.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Saifulalam Fahim

Saifulalam Fahim

More from Medium

I don’t know how to React: 5 reasons to learn React

Tips to prepare your projects to easily onboard new developers

Reactions to React

REACT HOOK(useState and useEffect)