Skip to content

"Arrow Components" proposal #127

@hexxt-git

Description

@hexxt-git

Idea

just like we have arrow functions in Javascript to define functions and especially callbacks, a similar concept could be implemented for components.

Why

arrow functions are much cleaner to read and they make it much more natural to think of them as "first-class citizen", pass them around in variables and as callbacks.

Propsed syntax:

let Button = () -> {
	...
}

or

let Button = () ==> {
	...
}

or any other variation on this

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions