CSS Architecture in React

Поділитися
Вставка
  • Опубліковано 13 січ 2025

КОМЕНТАРІ • 20

  • @samwisegrangee
    @samwisegrangee Рік тому +1

    Thanks for advocating for tried-and-true 7-1 SCSS. Just because it's in React doesn't mean everything needs CSS-in-JS, styled components, etc etc. Sometimes well written global styles get the job done, especially with those --root-vars.

  • @akrembc7951
    @akrembc7951 2 роки тому +2

    this is exactly what i wanted .. I'm working on a React project and when I decided to add some styling it became a mess and this helped me a lot to understand how my react folder structure could suit sass structure.. thank you so much

  • @CynthiaSotoCaballerolYEAHl
    @CynthiaSotoCaballerolYEAHl 2 роки тому +1

    Your content is so good!

  • @YiannisChristodoulou
    @YiannisChristodoulou 3 роки тому +1

    Great! Thanks.
    Which is your favorite CSS framework?

    • @TechbaseDev
      @TechbaseDev  3 роки тому

      I don't really like CSS frameworks, but I'd have to choose one, I'd go for Tailwind.

  • @nomad4691
    @nomad4691 3 роки тому +4

    Here from Brad's channel! /wave

  • @EverAfterBreak2
    @EverAfterBreak2 3 роки тому +2

    great video bro!

  • @matheus_carvalho.
    @matheus_carvalho. 3 роки тому +1

    Helped me a lot

  • @sourishdutta9600
    @sourishdutta9600 3 роки тому +1

    Hi, Thanks for this tutorial!! Can we have the repo link of this project to see the structure? Thank you so much

    • @TechbaseDev
      @TechbaseDev  3 роки тому +3

      Hi Sourish, unfortunately I can't share the code since this in stored in a private repository ☹️

    • @sourishdutta9600
      @sourishdutta9600 3 роки тому

      @@TechbaseDev it's okay I can understand 🙂. Make more video like this and thanks a lot.

  • @rezabozorgi311
    @rezabozorgi311 3 роки тому +1

    Thank you.
    I have a question.
    In which cases we should use 7-1 pattern or Atom ?

    • @TechbaseDev
      @TechbaseDev  3 роки тому +3

      TLDR: if you just need to re-use styles, use global styles (e.g. using the 7-1 pattern) and not separate components.
      --
      You could use both, but if one decided to pick Atomic Design, the need for a 7-1 pattern is probably non existent.
      I personally prefer to not use Atomic Design since it decouples your application for the worse.
      It's great in terms of DRY and from a (theoretical) component based type of development.
      However, it will make your codebase very abstract, hard to understand and difficult (time intensive, especially in TypeScript) to maintain. Inversion of control usually becomes a serious problem as well as the codebase starts to grow.

  • @nice_man932
    @nice_man932 3 роки тому +2

    Congratulations, bro
    I just saw you in brad traversy channel

  • @bakaleisanich
    @bakaleisanich 3 роки тому +1

    so) i need use styled-components ?)

    • @TechbaseDev
      @TechbaseDev  3 роки тому +1

      It really depends on the project itself. However, knowing how to write custom CSS is by far the most useful and desirable skill.
      You probably want to do that with either CSS Modules or Styled Components (/ Emotion).
      In the end it really depends on what your team / you prefer(s).
      I tend to skew more towards CSS Modules since it's much closer to just basic CSS, which most of the developers are (and should) be all familiar with.

  • @velihankara7949
    @velihankara7949 3 роки тому +3

    👍

  • @a89529294
    @a89529294 3 роки тому +2

    bump