Refactor conditional rendering in React with a custom 'Show' component

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

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

  • @dzbanek4971
    @dzbanek4971 2 месяца назад +3

    And why is it better than regular conditional rendering?

    • @salijoghli
      @salijoghli 2 месяца назад

      Experiment

    • @connor4359
      @connor4359 2 месяца назад

      clarity

    • @dzbanek4971
      @dzbanek4971 2 месяца назад

      @@connor4359 This is debatable at most, conditionals are already pretty clear and concise

    • @BlueCell
      @BlueCell  2 месяца назад

      Just more declarative way