Загрузка видео...

Не удалось загрузить видео

На главную

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 просмотров • 2 лет назад •via X (Twitter)

Комментарии: 10

Фото профиля Fran Zekan
Fran Zekan2 лет назад

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
Makisuo2 лет назад

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

Фото профиля CHIHEB Nabil
CHIHEB Nabil2 лет назад

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
Fran Zekan2 лет назад

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

Фото профиля Alejandro Barrera Aponte
Alejandro Barrera Aponte2 лет назад

Wait till they learn about <datalist>

Фото профиля Tom Braul 🪐
Tom Braul 🪐2 лет назад

Apparently react devs come across some real world business needs.

Фото профиля Bueno
Bueno2 лет назад

Safari doesn't fully support this so

Фото профиля Fran Zekan
Fran Zekan2 лет назад

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
Igor Silva2 лет назад

tks

Фото профиля rmdashrfv
rmdashrfv2 лет назад

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

Похожие видео