Giter VIP home page Giter VIP logo

Comments (4)

chinedufn avatar chinedufn commented on May 31, 2024

I was actually planning to remove support for <Component field1={..} field2={..} /> syntax.

I'm trying to, as much as possible, only have one way to do things.

And only in cases where it's very convenient would we add a shortcut / additional way.

Curious about your thoughts, if any?

from percy.

AkinAguda avatar AkinAguda commented on May 31, 2024

Oh I see. I'd suggest to keep the <Component field1={..} field2={..} /> syntax in. This is especially nice to use when using it among other html elements (It fits in nicely). As opposed to writing a function call that return html!

Honestly, I can't think of any reason but it's syntactical advantages. It's more friendly for web developers as well since its pretty much a convention used in other popular web frameworks.

Also, does that mean are you removing Structs as components? @chinedufn

from percy.

chinedufn avatar chinedufn commented on May 31, 2024

Definitely keeping the View trait, so structs as components are here to stay.

As for the shorthand syntax.. Ok let's continue to support it for now. I'm not so sure about my own stance yet.

Also, just for context, the feature was introduced here #139


Cool.. we can support this.. at least for the time being until we get feedback from others

from percy.

AkinAguda avatar AkinAguda commented on May 31, 2024

Awesome!

from percy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.