How I Built A Password Strength Checker in React.js | JavaScript Interview Question

Поделиться
HTML-код
  • Опубликовано: 10 сен 2024

Комментарии • 11

  • @ankitbaid11326
    @ankitbaid11326 2 года назад +2

    Nice Video,
    Only suggestion is you could have used Progress element.
    32%

  • @saketabhishek5147
    @saketabhishek5147 2 года назад

    Thank you please keep uploading videos like this love to watch and lots of learning man

  • @burhanrashid7497
    @burhanrashid7497 2 года назад

    Great video as always. Thanks Yomesh for this content 😊

  • @Midnight-Kiss
    @Midnight-Kiss Год назад

    Brilliant! thanks for helping with my issue!

  • @AbhishekVerma-zt7nu
    @AbhishekVerma-zt7nu 2 года назад

    Great video. Could we have used debouncing here for the input instead of useEffect for calculating the strength?

    • @DevtoolsTech
      @DevtoolsTech  2 года назад

      We can't debounce the change handler as that would cause delay in UI update. However, yes, we can look into debouncing the password strength computation. Worth a look!

    • @hussamkhatib746
      @hussamkhatib746 2 года назад

      @@DevtoolsTech Why do we need useEffect here , change of password will re-render the component and can compute the styles outside the effect.

    • @DevtoolsTech
      @DevtoolsTech  2 года назад +1

      There could be multiple ways to do it. We can go for useMemo or useEffect for password strength computation. We can even do it outside useEffect too. Aim was to show one way to do it. Try with other ways and do share your solution with us!