MCPcopy Create free account
hub / github.com/ARTHIJS/Reactjs / constructor

Method constructor

HomeClass.js:5–11  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

3
4class HomeClass extends Component {
5 constructor(props) {
6 super(props);
7 this.state = {
8 College:'MKCE',
9 Department:'CSE'
10 }
11 }
12 changeDepartment= () => {
13 this.setState({Department:'AIML'})
14 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected