Last active
August 1, 2018 19:07
-
-
Save AhmedKorim/4423d615af945b64dac91cb6e7a3519f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import './App.css'; | |
import TestComponent from "./TestComponent"; | |
class App extends Component { | |
read = 'hi from app'; | |
render() { | |
return ( | |
<div className="App"> | |
<TestComponent hello={this.read}/> | |
</div> | |
); | |
} | |
} | |
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
class TestComponent extends React.Component { | |
render() { | |
return ( | |
<div> | |
{/* // Unresolved variable hello | |
//Inspection info: Checks JavaScript referenced variables and fields to be valid ones. | |
// The validation works in JavaScript, html or jsp files*/} | |
{this.props.hello} | |
</div> | |
) | |
} | |
} | |
export default TestComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment