Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. constructor(props) {
  2. super(props);
  3. this.state = {
  4. isLoaded: this.props.isLoaded,
  5. menuMobile: true
  6. };
  7. // reference to the DOM node
  8. this.home = null;
  9. // reference to the animation
  10. this.tl = new TimelineLite({ paused: true });
  11.  
  12. this.scrollToTop = this.scrollToTop.bind(this);
  13. this.openMenuMobile = this.openMenuMobile.bind(this);
  14. this.closeMenuMobile = this.closeMenuMobile.bind(this);
  15. }
  16.  
  17. <li ref={ li => this.home = li }>
  18. <NavLink to={"/"} activeClassName="active" className="a-item">
  19. <span>home</span>
  20. </NavLink>
  21. </li>
  22.  
  23. Error: Cannot tween a null target.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement