PricingBlog

components or not

  • zefunha-1284483519548227707

    zefunha

    1 year ago

    Hi all,

    I am building a landing page, am not sure when to use components .

    Currently am using them for my header and footer.

    For my hero section cta am just using divs.

    For a simple landing page do you think it would be an issue.


    Also,what is the best way to build a search bar, is it best to use a div and style it then add in logic
  • tomthebigtree-1284523126646116483

    Tom Ireland

    1 year ago

    Hey. Having a header and footer as a component is a good idea to avoid duplication across pages. You could create a hero section component as that would allow for reuse across other pages. Andreas did a great video on abstraction recently on the toddle YT channel, so worth watching that as he touches on that very thing. Hope that helps!
    👍1
  • zefunha-1284528569363726459

    zefunha

    1 year ago

    Thanks Tom I'll check that out,

    I get one question answered and have 100 more.
  • lucasg-1284549317868130304

    Lucas G

    1 year ago

    Most of those questions are answered in the toddle youtube channel
  • tomthebigtree-1284562354771726467

    Tom Ireland

    1 year ago

    Yeah. I know that feeling. The undefined channel is really good as you’ll likely find things you’re wondering have already been answered. As Lucas also rightly pointed out, the toddle YT channel is good and there are others in the community that produce content too. The community is here for other questions as well.
  • zefunha-1285267287779311680

    zefunha

    1 year ago

    I have been following the youtube channel, like all new things dive head first in and read the manual after.
    😂1