Wednesday, December 27, 2017

Prettier error on save: Unexpected token, expected "..."

It is for the following code:

       <Text {this.props.store1.value1}</Text>
        <Text {this.props.store2.value2}</Text>

At first I thought it has something to do with the not being define in the 'App' class.  However, the issue was that I had not ended my '<Text' properly.

I should have been:

       <Text> {this.props.store1.value1}</Text>
        <Text> {this.props.store2.value2}</Text>

No comments:

Post a Comment