logo by @sawaratsuki1004
React
v19.2
Learn
Reference
Community
Blog

Is this page useful?

On this page

  • Overview
  • إضافة للمتصفح
  • متصفح Safari والمتصفحات الأخرى
  • الهواتف (React Native)

    GET STARTED

  • Quick Start
    • Tutorial: Tic-Tac-Toe
    • Thinking in React
  • Installation
    • Creating a React App
    • Build a React App from Scratch
    • Add React to an Existing Project
  • Setup
    • Editor Setup
    • Using TypeScript
    • React Developer Tools
  • React Compiler
    • Introduction
    • Installation
    • Incremental Adoption
    • Debugging and Troubleshooting
  • LEARN REACT

  • Describing the UI
    • Your First Component
    • Importing and Exporting Components
    • Writing Markup with JSX
    • JavaScript in JSX with Curly Braces
    • Passing Props to a Component
    • Conditional Rendering
    • Rendering Lists
    • Keeping Components Pure
    • Your UI as a Tree
  • Adding Interactivity
    • Responding to Events
    • State: A Component's Memory
    • Render and Commit
    • State as a Snapshot
    • Queueing a Series of State Updates
    • Updating Objects in State
    • Updating Arrays in State
  • Managing State
    • Reacting to Input with State
    • Choosing the State Structure
    • Sharing State Between Components
    • Preserving and Resetting State
    • Extracting State Logic into a Reducer
    • Passing Data Deeply with Context
    • Scaling Up with Reducer and Context
  • Escape Hatches
    • Referencing Values with Refs
    • Manipulating the DOM with Refs
    • Synchronizing with Effects
    • You Might Not Need an Effect
    • Lifecycle of Reactive Effects
    • Separating Events from Effects
    • Removing Effect Dependencies
    • Reusing Logic with Custom Hooks
Learn React
Setup

أدوات مطوري React

استخدم أدوات مطور React لفحص المكونات، وتعديل الخصائص والحالة وتحديد مشاكل الأداء.

You will learn

  • كيفية تثبيت أدوات مطوري React

إضافة للمتصفح

أسهل طريقة لحل المشاكل البرمجية للمواقع المبنية بـ React أن تثبت إضافة أدوات مطوري React للمتصفح. وهي متوفرة لعدة متصفحات شهيرة:

  • تثبيت لـ Chrome
  • تثبيت لـ Firefox
  • تثبيت لـ Edge

الآن، إن زرت موقعًا مبنيًا باستخدام React سترى نافذتي المكونات (Components) و المُحلل (Profiler) في أدوات المطور.

إضافة أدوات مطوري React

متصفح Safari والمتصفحات الأخرى

للمتصفحات الأخرى (مثل Safari)، قم بتثبيت حزمة npm react-devtools:

# Yarn yarn global add react-devtools # Npm npm install -g react-devtools

ثم افتح أدوات المطور في موجه الأوامر (Terminal):

react-devtools

ثم اربط موقعك بإضافة عنصر <script> التالي إلى بداية <head> في موقعك:

<html> <head> <script src="http://localhost:8097"></script>

أعد تحميل موقعك الآن في المتصفح لتراه في أدوات المطور.

أدوات مطوري React المستقلة

الهواتف (React Native)

يمكن استخدام أدوات مطوري React لفحص التطبيقات المبنية بـ React Native.

أسهل طريقة لاستخدام أدوات مطوري React هي تثبيتها على نطاق عام:

# Yarn yarn global add react-devtools # Npm npm install -g react-devtools

ثم افتح أدوات المطور في موجه الأوامر (Terminal):

react-devtools

من المفترض أنه سيتصل بأي تطبيق React Native محلي إن كان يعمل.

جرب إعادة تحميل التطبيق إن لم تتصل أدوات المطور بعد ثوانٍ.

تعرّف على المزيد حول تصحيح أخطاء React Native.

PreviousUsing TypeScript
NextReact Compiler

Copyright © Meta Platforms, Inc
no uwu plz
uwu?
Logo by@sawaratsuki1004
Learn React
Quick Start
Installation
Describing the UI
Adding Interactivity
Managing State
Escape Hatches
API Reference
React APIs
React DOM APIs
Community
Code of Conduct
Meet the Team
Docs Contributors
Acknowledgements
More
Blog
React Native
Privacy
Terms
# Yarn
yarn global add react-devtools

# Npm
npm install -g react-devtools
react-devtools
<html>
<head>
<script src="http://localhost:8097"></script>
# Yarn
yarn global add react-devtools

# Npm
npm install -g react-devtools
react-devtools