Skip to content

Instantly share code, notes, and snippets.

@AhmedKorim
Last active August 1, 2018 19:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedKorim/4423d615af945b64dac91cb6e7a3519f to your computer and use it in GitHub Desktop.
Save AhmedKorim/4423d615af945b64dac91cb6e7a3519f to your computer and use it in GitHub Desktop.
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;
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