anthonyshort / deku

Render interfaces using pure functions and virtual DOM
https://github.com/anthonyshort/deku/tree/master/docs
3.41k stars 130 forks source link

Functions as component? #350

Closed Yomguithereal closed 8 years ago

Yomguithereal commented 8 years ago

Hello deku, I am wondering whether the following can be a component:

function MyButton() {
  return <button>Click Me!</button>;
}

Some parts of the docs (notably the Quick Start section) seems to implies that this is the case but it seems not to work when coding it.

anthonyshort commented 8 years ago

This one is merged in, I'll get it out in RC8