Code Monkey home page Code Monkey logo

Comments (10)

casesandberg avatar casesandberg commented on June 1, 2024

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.

mwildehahn avatar mwildehahn commented on June 1, 2024

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.

seekshiva avatar seekshiva commented on June 1, 2024

There is another issue related to React 0.14. Should I post it here or create a new issue?

from reactcss.

seekshiva avatar seekshiva commented on June 1, 2024

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.

casesandberg avatar casesandberg commented on June 1, 2024

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.

casesandberg avatar casesandberg commented on June 1, 2024

Looking into the component classes error as we speak.

from reactcss.

 avatar commented on June 1, 2024

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.

mwildehahn avatar mwildehahn commented on June 1, 2024

@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.

 avatar commented on June 1, 2024

@casesandberg Would it be possible for you to release a version of reactcss with the dependency fixed?

from reactcss.

casesandberg avatar casesandberg commented on June 1, 2024

Dependency has been fixed in [email protected]

from reactcss.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.