Mirjalol Norqulov
VueJS va Laravel bo'yicha ko'rgan kechirganlarim haqida :) Umuman dasturlash haqida ham gaplashamiz.
Show more- Subscribers
- Post coverage
- ER - engagement ratio
Data loading in progress...
Data loading in progress...
import { object, string, number, date, InferType } from 'yup'; let userSchema = object({ name: string().required(), age: number().required().positive().integer(), email: string().email(), website: string().url().nullable(), createdOn: date().default(() => new Date()), }); type FormValues = InferType<typeof userSchema>userSchema’da yozilgan validatsiya qoidalariga mos ravishda Typescript type hosil bo’ladi. Buni yaxshi tomoni forma uchun type yozib o’tirmaysiz. Validation rule’larni yozib chiqasiz Typescript type ham tayyor.
Dead simple Object schema validation. Contribute to jquense/yup development by creating an account on GitHub.
interface UserModalProps extends ModalProps { userId?: number } const props = defineProps<UserModalProps>();Shu holatda ModalProps ichida e’lon qilingan proplarni props orqali ishlata olmas ekanmi. Buning uchun useAttrs() funksiyasi orqali attributlarni olishimiz kerak bo’ladi. props da esa faqat userId prop mavjud bo’ladi.
const attrs = useAttrs(); watch(() => attrs.show, () => { console.log(attrs.show); });Menimcha bu narsa extend qilinayotgan component proplari va o’zimiz e’lon qilgan custom proplarni ajratib olish va component’ga berib yuborish qulay bo’lishi uchun qilingan bo’lsa kerak.
A complete guide to learn the difference between debounce and throttle using visual examples. Never confuse the two again.
Simple, Modular and Accessible UI Components for your React Applications. Built with Styled System
Apache ECharts, a powerful, interactive charting and visualization library for browser
ModalProvider
faqat bir marta ishlatilinadi. Root componentni wrap qilib qo’ysangiz yetarli bo’ladi. Plugin sifatida o’rnatib konfiguratsiya qilib xohlagan UI kutubxonaga moslash imkoniyatini qilish mumkin.
Bu narsa kodni ancha qisqartiradi hamda modal oynalar bilan ishlashni osonlashtiradi.Vue.js - The Progressive JavaScript Framework
Your current plan allows analytics for only 5 channels. To get more, please choose a different plan.