Comments (1)
well, if that's the case...
no way of attaching it to the prototype? And also, what's the impact of having it on the instance?
gabriele
~ buildo
On 05 Jun 2015, at 01:38, Giulio Canti [email protected] wrote:
Reading the code of autobound I noticed that the method seems attached to the instance, not to the prototype so instead of
import { autobound } from 'web-framework';
class Wrapper extends React.Component {
@autobound
method() {
console.log(this.props.name);
}render() {
return ;
}}
yesterday @gabro suggested something like thisclass Wrapper extends React.Component {
method = () => console.log(this.props.name);
render() {
return ;
}}
—
Reply to this email directly or view it on GitHub.
from revenge.
Related Issues (20)
- update avenger dep
- properly reject av Promise on error HOT 1
- update deps
- better handling of nextPath in anonymous
- remove Query.js
- update avenger version
- make batch debounce delay configurable
- collect errors from avenger execution
- fix readyState loading
- queries.filter should be per-query
- getState should be app business only
- update avenger dep
- add @mapProps decorator
- Update lodash to ^4
- split into separate small repos and deprecate this HOT 6
- [pure] safer handling of `state = null/undefined`
- functional getLocals with default
- @pure should be customizable for specific components
- @skinnable should cache locals
- make `@pure` usable also as a function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from revenge.