Question: Hi guys I can't see my Error here hope someone can hlep...
This is my fetch Data class:

```
  export default class Auftrag extends Component {
        state = {
            auftraege: "Test",
        };

        getAuftraege = () => {
            axios.get("Auftraege/auftraege").then(e => {
                this.setState({
                    auftraege: e.data,
                });
                console.log(e.data);
            });
        };

        componentDidMount() {
            this.getAuftraege();
        }

        render() {
            return (
                <>
                    <AuftragDisplay test={this.state.auftraege} ></AuftragDisplay>
                </>
            );
        }
    }

```

And this is my constructor in my Display class:

```
    constructor(props) {
        super(props);
        console.log(props);
    }

```

The axios Request is getting fired and I get the right data in my console. But It is not getting passed to my Component. 
Hope someone knows whats wrong and can help me

SOLVED:
Thx to san I tried it and could solve the problem. I got the data passed but console.log() was called before the update so I got the old data. THX again

Answer: 
Your code looks fine. you can see below same code with different api as an example

```
class Auftrag extends Component {
        state = {
            auftraege: "Test",
        };
        getAuftraege = () => {
            axios
            .get("https://jsonplaceholder.typicode.com/posts/1")
            .then(e => this.setState({auftraege: e.data}))
        };
        componentDidMount() {
            this.getAuftraege();
        }
        render() {
            return (
                <>
                    <AuftragDisplay test={this.state.auftraege} ></AuftragDisplay>
                </>
            );
        }
    }
    const AuftragDisplay = ({test}) =><h2>Hi--->{test.title}</h2>

```
Just put the state inside constructor of Auftrag class, I should work.