ericclemmons / react-resolver

Async rendering & data-fetching for universal React applications.
https://ericclemmons.github.io/react-resolver
Other
1.65k stars 52 forks source link

Decorators #54

Closed srph closed 9 years ago

srph commented 9 years ago

Pretty neat.

@resolve
class SomeComponent extends React.Component {
  static resolve = {
    user() => {
    }
  };
}
srph commented 9 years ago

https://github.com/ericclemmons/react-resolver/issues/53