React is broken? Props are becoming undefind [Solved by restarting Meteor]


#1

Please, help! :innocent:
Have this component:

import React from 'react'
export default class extends React.Component {
    render() {
        console.log(this.props)
        const {data} = this.props
        console.log(data)
        //console.log(data.text)
        return (
            <div className="row">
                Test text!
            </div>
        )
    }
}

and this output (first object - this.props; second - data):

But when I try to uncomment
console.log(data.text)
I have:


#2

make sure your porps are actually loaded when the component is rendered, or else you will need default props