Comments (10)
Do you know what the is="..."
attribute does? I cant find anything about it.
Also, since the react-map-styles
is doing string replace, it wont break anything unless you are trying to use is
. I have been trying to come up with a more long-term solution other than hijacking it anyways.
from reactcss.
no idea, i just was reading the new react documentation and thought of
this.
i meant more of "conflict" than break. i'll see if i can lookup anything
about "is"
On Tue, Sep 29, 2015 at 8:39 PM case [email protected] wrote:
Do you know what the is="..." attribute does? I cant find anything about
it.Also, since the react-map-styles is doing string replace, it wont break
anything unless you are trying to use is. I have been trying to come up
with a more long-term solution other than hijacking it anyways.—
Reply to this email directly or view it on GitHub
#22 (comment)
.
from reactcss.
There is another issue related to React 0.14. Should I post it here or create a new issue?
from reactcss.
Seems like react is enforcing that all react components extend React.Component directly.
class MyComponent extends ReactCSS.Component {
render(){
return <div />
}
}
throws this warning:
Warning: MyComponent(...): React component classes must extend React.Component
from reactcss.
Found out that the is="..."
syntax is for web component support and not recommended by Facebook so we should be fine on that front.
https://twitter.com/soprano/status/651880693748899840
from reactcss.
Looking into the component classes error as we speak.
from reactcss.
Don't know if the component classes issue is really an issue?
The warnings appear, because reactcss has a dependency to react 0.13. That version does not have "isReactComponent" flag set for the React.Component class from which ReactCSS.Component inherits. When I updated reactcss' dependecy to react 0.14, the warnings disappeared and everything works just fine.
Here is the code that React uses to validate the inheritance:
warning(Component.prototype && Component.prototype.isReactComponent || !canInstantiate || !(inst instanceof Component), '%s(...): React component classes must extend React.Component.', Component.displayName || Component.name || 'Component')
The above happens only with the npm package. In master this seems to have been fixed. @seekshiva Are you on master or version 0.4.x?
from reactcss.
@casesandberg sorry for blending this and #23 together. @jhytonen is right, I upgraded to the version on master and the warnings etc. have gone away. everything seems to be working well.
from reactcss.
@casesandberg Would it be possible for you to release a version of reactcss with the dependency fixed?
from reactcss.
Dependency has been fixed in [email protected]
from reactcss.
Related Issues (20)
- Remove react-addons-test-utils from peerDependencies HOT 8
- react-addons-test-utils still in published 1.0.8 HOT 1
- Custom selectors that are vendor specific HOT 2
- Pass in onClick component for Hover
- how to used Autoprefixing ? HOT 1
- Autoprefix returning empty list under webpack2 HOT 2
- Build fails while using with react-color component HOT 5
- Make Autoprefixing Exhaustive
- Proposal: Support for symbols
- Redux Compatibility? HOT 4
- Put react in dependencies cause npm install different react version, HOT 1
- Tag releases please HOT 1
- Hover.js > hover.js HOT 1
- ReactCSSTransitionGroup example HOT 5
- Is Hover broken? HOT 3
- Why is there an example titled Redux? HOT 1
- Pseudo-classes are not pseudo-elements (documentation nitpick) HOT 1
- Remove lodash as a dependency and use lodash 4.0 submodules as needed HOT 2
- Input Placeholder Color HOT 1
- Write type declaration file for typescript HOT 3
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 reactcss.