رقصنده با کد (و غیره)
رفتن به کانال در Telegram
Here are some interesting things I've come across during my learning process. That's it. Admin ID: @alithecodeguy
نمایش بیشتر728
مشترکین
اطلاعاتی وجود ندارد24 ساعت
-47 روز
-130 روز
آرشیو پست ها
StrictMode is a tool for highlighting potential problems in an application. Like Fragment, StrictMode does not render any visible UI. It activates additional checks and warnings for its descendants.
Strict mode checks are run in development mode only; they do not impact the production build.
StrictMode currently helps with:
-Identifying components with unsafe lifecycles
-Warning about legacy string ref API usage
-Warning about deprecated findDOMNode usage
-Detecting unexpected side effects
-Detecting legacy context API
#reactReact.PropTypes has moved into a different package since React v15.5. Please use the prop-types library instead.
As your app grows, you can catch a lot of bugs with typechecking. For some applications, you can use JavaScript extensions like Flow or TypeScript to typecheck your whole application. But even if you don’t use those, React has some built-in typechecking abilities.
For performance reasons, propTypes is only checked in development mode.
The propTypes typechecking happens after defaultProps are resolved, so typechecking will also apply to the defaultProps.
#react #proptypes1- A form element becomes controlled if you set its value via a prop. That’s all.
2- in
Uncontrolled inputs , you have to ‘pull’ the value from the field when you need it.
3- in Controlled inputs , the system mechanism ‘pushes’ the value changes to the form component.
4- In React, an <input type="file" /> is always an uncontrolled component because its value can only be set by a user, and not programmatically.
5- With an uncontrolled component, you often want React to specify the initial value, but leave subsequent updates uncontrolled. To handle this case, you can specify a defaultValue attribute instead of value. Changing the value of defaultValue attribute after a component has mounted will not cause any update of the value in the DOM.
-------
https://goshakkk.name/controlled-vs-uncontrolled-inputs-react/
#reactقابل پیشبینی بود
ری اکت نسخه ۱۸ !
فقط ۳ روز دیگه کنفرانس نکست بود ولی ری اکت با خبر انتشار نسخه ۱۸ بنظرم کمی عرض اندام کرد حالا چرا همچین چیزی گفتم چون فاصله ریاکت ۱۶ به ۱۷ ، ۲ سال و نیم بود ولی ۱۷ به ۱۸ کمتر از ۱ ساله ! و دقیقا ام ۱۱ June این خبر اعلام شده ! درست ۳ ۴ روز قبل کنفرانس نکست ! و البته با فیچری که قبلا اعلام کرده بود و اسمش server components بود ، حالا در نسخه ۱۸ اعلام کرده که چندین قابلیت جدید به ری اکت اضافه شدهتوی مصاحبههای برنامه نویسی که تا الآن تشریف بردید ، آیا مدرک تحصیلی یا حتی مدرک برنامه نویسی ازتون خواستن؟
توی مصاحبههای برنامه نویسی که تا الآن تشریف بردید ، آیا مدرک تحصیلی یا حتی مدرک برنامه نویسی ازتون خواستن؟
سلام همگی. با عرض معذرت بابت ناهماهنگی پیش اومده ، امروز نمیرسم دورهمی بلاکچین رو تشکیل بدم. زمان بعدی توی گروه تلگرامی alithecodeguy اطلاع داده میشه.
راه دیگهای میشناسید؟
به غیر از راههای تخیلی خیلی قدیمی.
روشهای مدرن منظورمه.
کامنت کنید.
#react #rerender
پست گذاشتم که آقا اگر میخواهید از شر سوالهای بیمورد اطرافیان راحت بشید ویدیو یوتیوب ضبط کنید. هم دانش خودتون میره بالا هم شناخته میشید هم دیگه هر کی هر چی پرسید میگی برو فلان ویدیو رو ببین.
یه دوست عزیزی اومده میگه نه حتما باید سطحمون خیلی بالا باشه مثل فلانی تا تدریس کنیم. میگم خب ما این ویدیوها رو رایگان آپلود میکنیم ، اونی که میگی دورههاش رو میفروشه.
میگه نه اتفاقا روی سایتای ایرانی رایگان هستش.
🤦♂️در این حد
