Skip to content
This repository has been archived by the owner on Feb 4, 2022. It is now read-only.
/ deco Public archive

Declarative and component based UI library for C#

License

Notifications You must be signed in to change notification settings

markushauge/deco

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deco

Declarative and component based UI library for C#

public class App : Component {
    private readonly State<int> _count = 0;

    public override IView Render() =>
        new VStack {
            new HStack {
                new Button(" - ", () => _count.Value--),
                new Button(" + ", () => _count.Value++)
            },
            new Text($"Count: {_count.Value}")
        };
}

Deco uses the MVU pattern known from Elm and React, and is built on the idea that "UI is a function of state".

Rendering architecture is heavily inspired by Comet.

About

Declarative and component based UI library for C#

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages