PricingDocsAcademy
Bluesky ...
Fri, Dec 13, 8:44 AM

Component naming

  • nathandh

    20 days ago

    What toddle calls component “attributes, other typical web tech (like React generally or Webflow specifically) calls “properties. When I see “attributes, I think data-attributes every time, which is not the same thing.

    Why the difference in naming convention?
    1
  • Lucas G

    20 days ago

    toddle isn’t react though. Attribute probably originally came from HTML attributes
  • Component attributes behave similarly
  • It would be React which deviated from that naming if anything lol. Props are similar in use
  • nathandh

    20 days ago

    That’s what I mean though — HTML attributes are very different from what toddle calls attributes. And what it calls attributes, everything else calls properties. So curious why the inversion
  • Lucas G

    20 days ago

    When adding HTML attributes you do it in the attributes tab
  • Lucas G

    20 days ago

    Attributes are used to pass data into a component which is what HTML attributes do
  • Lucas G

    20 days ago

    React props and toddle attributes do go further in that they are more flexible of course but that's how I relate them
  • I'm not part of the toddle team though so it's just my guess
    👍🏼1

Stop scrolling. Start building.

toddle is a visual web app builder that rivals custom code — but accessible to your entire team!

Try toddle — it's free!

© Copyright 2024 toddle. All rights reserved.