Skip navigation
⚛️ Write better and safer condition with pattern matching ↓
0:00 / 0:21

⚛️ Write better and safer condition with pattern matching ↓

George Moller

@_georgemoller118K followers

Visit on X
1,171 likesDownloadOriginal post

108,869 views

⚛️ Write better and safer condition with pattern matching ↓

9 Comments

Comments from the original post on X (Twitter)

  • George Moller's profile picture

    @_georgemoller

    I've been working professionally with React for more than 8 years and I compiled all my knowledge into 100+ infographics and 70+ video tutorials just like this one. Check them out ↓

    8 likes

  • Igor's profile picture

    @igorer88

    I miss when you posted pictures instead of videos 😔

    3 likes

  • ra 0of's profile picture

    @raoofhojat

    use if/else, you don't need to abstract everything, especially if it's from a 3rd party library. more code is cheaper than wrong abstraction

    3 likes

  • versionControlDev( )'s profile picture

    @samthatcode

    Nested conditional statements using the ternary operator

    2 likes

  • Romain LAURENT's profile picture

    @caedes

    For my part, I use cond from Ramda, it's quite pretty!

    2 likes

  • Anuj Varshney's profile picture

    @iAnujVarshney

    It's like a switch case rather than use if else. This handling cases way is really amazing. Does any third party library either react to have this?

    1 like

  • AM's profile picture

    @mitev_andon

    thats dope

    1 like

  • Senthil's profile picture

    @spfoos

    Things that I miss about Erlang…

    1 like

  • Muhi Masri's profile picture

    @muhimasri

    Really nice! I like how the conditions are packed in a "with" function with comma separator. Very neat.

    1 like