Jump to content

Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Newbie

About egorrr

  • Rank
  1. Thanks for links and video ?. Yep, I use axios already, basically, my HOC takes two params URL and Component, then it requests data by given URL and put result into props of the component and returns it, like so: const withFetching = (url, CurrentComponent) => class WithFetching extends Component { constructor(props) { super(props); this.state = { data: {}, isFetching: false, error: null, }; } componentDidMount() { this._fetchData(); } _fetchData() { this.setState({ isFetching: true }); axio
  2. Hey, thanks for the quick response and detailed examples. I tried your simplification in my code and didn't have a success the animation didn't trigger at all, but in your codepen everything was OK. So I struggled a bit and released that the problem can be in my High ordered component (didn't know that it would be an important point), I had wrappers like this in my app to decrease the amount of code for fetching data: export default withFetching(URL_PATH_PERSON_DATA, About); I printed out steps of lifecycle and found in the console next order: 1) componentDidMount was triggered in Ab
  3. Hi, I am pretty new in GSAP and don't have a lot of exp. in react, so I am not 100% sure what is the main cause of this problem. Problem: I am trying to do a basic show/hide DOM element animation by clicking on buttons (one in parent App component, one inside of About section) and it works almost great. I would like that About section will be out of the viewport by default but after TweenMax.set(...) I still can see About section (I don't use CSS transform for default state). I saw examples and other topics on the forum but haven't found something like that so far. I also figured out th