6: بناء ال component الأول في React
ฝัง
- เผยแพร่เมื่อ 14 ต.ค. 2024
- 6: بناء ال component الأول في React
========================
لا تتردد في كتابة الاستفسارات حول هذا المقطع في جروب مجتمع ترميز في التيليجرام أو في خانة التعليقات.
🟡 رابط السلسلة كاملة:
www.udemy.com/...
🟢 كامل أكواد السلسلة تجدها هنا:
github.com/Yar...
🔵 للانضمام لمجتمع React في تيليجرام:
t.me/tarmeezReact
🔵 للانضمام لمجتمع ترميز في التيليجرام:
t.me/tarmeezCo...
==========================
و للاستفسارات البرمجية الأخرى، يمكنك سؤالي في حسابي بتويتر:
/ yarhmm
رحم الله والديك، شرحك ما شاء الله عليه مفصل وجميل في توصيل المعلومة 🤍
سبحان الله
اشكرك صديقي على المحتوى الرائع
انا ان شاء الله محترف ببايثون و استخدم طريقة الoop لبناء الكود الخاص فيي
لذلك احتجت لعمل تطبيق ويب اب كواجهة استخدام لكود معين
و كل ماكان يخطر عبالي كيف اقوم بهيدا الامر بالطريقة الله معتاد عليها ببايثون
لذلك اثناء استماعي لشرحك و انا ابتسم ان طريقة عمل هيدي المكتبة هي تماما ما ابحث عنه الى حد كبير لتسهيل بناء الآب الخاص بي
طريقة الشرح والتوضيح ارفع لك القبعة عليها بارك الله فيك وجزاك الله خيرا
شغل محترم و شرح هايل جزاك الله خير
شرح محترم و مرتب
انا حاليا استعمل رياكت عن طريق cdn (بعد عداب طوييل👀)لاني مستعمل هاتف فقط اتمنى الا اواجه مشاكل مستقبليا
بص هو ممكن تستعمل termux و تنزل عليه linux كبديل مؤقت
جميل جدا.
شكرا جزيلا.
thank you so much baaraka allah fik
بوركت جهودك وجزاك الله خيراً
جزاك الله خيرا على الشرح الواضح🙏🙏
شكرا بارك الله فيك وحزاك الله خير بس بسألك هل اذا كنت متمكن من الجافا سكريبت رح استفيد من الرياكت ؟
Thank you
thanks
بوركت
ان شاء الله اول ما اشتغل هشترى الكورس كله
ملف src غير موجود بعد تثبيت العمل
Conclusion:
App.js called also Root component, but why?
In web development the primary files start always by index, like index.js and index.html
And since, public folder is accessible by the client, index.js will be loaded to the client and will call index.js, which will create a Root Component App.js
==> The name of the component should start by a Capital letter in React, and the name of the file should be the same as the component.
==> in index.html,
===> in index.js ;
import libraries from node_modules, like React, and ReactDom from 'react' and 'react-dom/client'
const root = ReactDom.createRoot(getElementbyId('root');
root.render();
To inject the Root component into the HTML file
P.S: React component return only one element, so if you want to return more than one element, wrap it in one element
Don't forget to export and import any reusable component in React
how to handl this
error : is defined but never used
make sure that the first letter in your component is in Captial letter .
@@blooming8425 thanks