Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs Must Have Owner Warning #10

Open
Ileezyy opened this issue Jul 11, 2017 · 1 comment
Open

Refs Must Have Owner Warning #10

Ileezyy opened this issue Jul 11, 2017 · 1 comment

Comments

@Ileezyy
Copy link

Ileezyy commented Jul 11, 2017

Cannot run project because of this warning.

Use code from the example

`
import React, { Component } from 'react';
import ParallaxComponent from 'react-parallax-component';

const WORD = 'AWESOME REACT';
const random = (min, max) => Math.random() * (max - min) + min;

export default class Test extends Component {
render() {
const wrap = {
height: window.innerHeight * 10,
};

return (
  <div style={wrap} >
    {
     WORD.split('').map((letter, index) =>
       <ParallaxComponent
         speed={random(0, 0.1) * ((random(0, 2) > 1) ? 1 : -1)}
         top="40%"
         left={(index + 1) * 80}
         key={index}
       >
         <span className="letter">
           {letter}
         </span>
       </ParallaxComponent>
     )
   }
 </div>
);

}
}
`
So, how to resolve this?
Thanks!

screenshot_2017-07-11_12-21-15

@Babazon
Copy link

Babazon commented Sep 21, 2017

It's certainly depressing when you install a package, copy paste the example docs.. and it doesn't work : )

This package works with React 14, and if you are using 15-16, it installs react 14 in your node_modules.. Better find another, as this is not maintained.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants