PricingDocsAcademy
Bluesky ...
Tue, Dec 3, 2:29 AM

Component naming

  • nathandh

    9 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?
  • Lucas G

    9 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

    9 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

    9 days ago

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

    9 days ago

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

    9 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

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.