Skip to content
This repository has been archived by the owner on Dec 6, 2018. It is now read-only.

class, static {} add brackets when printing concise #12

Open
mlrawlings opened this issue Feb 4, 2017 · 0 comments
Open

class, static {} add brackets when printing concise #12

mlrawlings opened this issue Feb 4, 2017 · 0 comments

Comments

@mlrawlings
Copy link
Contributor

In (HTML)

class {
    constructor() {
        this.state = {
            count:0
        };
    }
    increment() {
        this.state.count++;
    }
}
 
<div>The current count is ${state.count}</div>
<button on-click('increment')>+1</button>

Out (target:concise):

class [
        {
    constructor() {
        this.state = {
            count:0
        };
    }
    increment() {
        this.state.count++;
    }
}
    ]
div -- The current count is ${state.count}
button on-click('increment') -- +1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant