Giter Club home page Giter Club logo

Comments (7)

liximomo avatar liximomo commented on April 28, 2024 4

Supported in v2.2.0

from composition-api.

phiter avatar phiter commented on April 28, 2024 2

I don't think that's what setup() is meant to be, for components, since template is a separate option.
Also value unwrapping isn't clear here.

from composition-api.

IceSentry avatar IceSentry commented on April 28, 2024 1

@phiter it's part of the RFC

https://github.com/vuejs/rfcs/blob/function-apis/active-rfcs/0000-function-api.md#usage-with-manual-render-functions

from composition-api.

phiter avatar phiter commented on April 28, 2024

Oh I see. You gotta access values with .value inside the jsx then.

from composition-api.

IceSentry avatar IceSentry commented on April 28, 2024

You don't necessarily have too use .value it's only when you use the value() wrapper. If you use state or anything that doesn't use .value then you don't need too. It's just that the example used a value() and this requires a .value

from composition-api.

beeplin avatar beeplin commented on April 28, 2024

@IceSentry I am afraid that computed needs .value just like value.

from composition-api.

IceSentry avatar IceSentry commented on April 28, 2024

Yes, you are right, I didn't check the RFC before posting, my point still stands that .value is not related to render functions. It's just that the example used that particular value() wrapper.

from composition-api.

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.