Comments (4)
The way class extension was working was through the usage of React's private API which meanwhile became really private (there's no way to reach the component instance as we were doing). I'm not saying it's impossible to achieve the same functionality, though Backbone.React.Component
API was going against React standard usage so I've decided to drop it. I'm open to suggestions and in case you wish to work on a PR and recover the dropped API I'll thank you for that, as long as the solution doesn't rely on anything "private" :)
from backbone-react-component.
Regarding inheritance, there's no way to turn that base view/component into a mixin?
from backbone-react-component.
I'm going to close this issue. Please reopen it if needed. Thanks.
from backbone-react-component.
Cool, ended up taking your advice and removing the inheritance in favor of passing in child components. With that, was able to use the library as a mixin on just the top level component. Working great, thanks!
from backbone-react-component.
Related Issues (20)
- unit tests to validate overrideModel and overrideCollection hooks HOT 3
- Provide alternative to mixin HOT 8
- Not to run render twice collection.fetch HOT 3
- Roadmap v0.9 HOT 1
- Resetting a collection does not re-establish bindings for models that were included both before and after that reset HOT 3
- @state.isRequesting is not set on Collection#fetch HOT 1
- on/off usage example
- es6 refactoring
- Listening to specific changes HOT 1
- React Native Support HOT 1
- Update backbone to 1.2.x and consider new "update" collection event HOT 8
- plugin uses toJSON to set state, but this causes issues when overriding HOT 7
- Typing in input field makes cursor jump to the end of input HOT 2
- React 0.14.0 HOT 3
- fix server side example on README.md
- How to get the actual Model? HOT 3
- Multiple renders
- Keeping references between model and state HOT 4
- Why listen to `change` event on collection? HOT 6
- Please upgrade to react 15.x.x HOT 2
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 backbone-react-component.