Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre React Native vs React | Section
React Native Basics

bookReact Native vs React

Glissez pour afficher le menu

Before starting, it is important to understand one key difference.

React is used to build web interfaces. It uses HTML elements like:

  • div: container;
  • p: text;
  • img: images.

React Native does not use HTML.

Instead, it provides its own components:

  • View: container;
  • Text: for all text;
  • Image: for images.

This means you do not write web code anymore. You build mobile interfaces using these components.

Styling is also different.

You do not use traditional CSS files. Instead, styles are written directly in JavaScript using objects.

At this stage, the idea is simple: React Native uses the same concepts as React, but different building blocks.

question mark

What replaces div in React Native?

Sélectionnez la réponse correcte

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 1

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Section 1. Chapitre 1
some-alt