Video yükleniyor...

Video Yüklenemedi

Ana Sayfaya Dön

Apparently some React devs don't know that <input type="date"> exists and think you need a library for that? So I made a really quick demo...

189,036 görüntüleme • 2 yıl önce •via X (Twitter)

10 Yorum

Fran Zekan profil fotoğrafı
Fran Zekan2 yıl önce

You can still make fun of #useThePlatform for other things that platform doesn't handle well but non-native date pickers on mobile are bad...

Makisuo profil fotoğrafı
Makisuo2 yıl önce

thing though, I'm guessing the native calendar is not stylable which is kind of a dealbreaker imo.

CHIHEB Nabil profil fotoğrafı
CHIHEB Nabil2 yıl önce

I understand your perspective, but many developers opt for using date libraries to ensure consistent design across platforms/browsers. Moreover, when dealing with date localization, there are varying behaviors across different browsers. P.S. I'm not a React.js developer, but I believe this applies to other frameworks too

Fran Zekan profil fotoğrafı
Fran Zekan2 yıl önce

For those interested in more details of what you can use where ->

Alejandro Barrera Aponte profil fotoğrafı
Alejandro Barrera Aponte2 yıl önce

Wait till they learn about <datalist>

Tom Braul 🪐 profil fotoğrafı
Tom Braul 🪐2 yıl önce

Apparently react devs come across some real world business needs.

Bueno profil fotoğrafı
Bueno2 yıl önce

Safari doesn't fully support this so

Fran Zekan profil fotoğrafı
Fran Zekan2 yıl önce

Safari doens't support week and month views, which up until a few months ago I didn't even know existed 😅 If you need those, fine, but most people need a date-picker and instead use a 1mb lib that doesn't work well on mobile just because...

Igor Silva profil fotoğrafı
Igor Silva2 yıl önce

tks

rmdashrfv profil fotoğrafı
rmdashrfv2 yıl önce

I like this but it is too small for me. Not the UI. I mean the bundle size. If you ain't adding 8mb of JS for a date picker in your React app then you ain't doing React

Benzer Videolar