Created
May 5, 2019 16:07
-
-
Save khadkarajesh/d7467945d69f57e7d5db1aac37f671db 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 IncwellBootcamp from "IncwellTechnology"; | |
class App extends Component { | |
state = { | |
enrolled: {} | |
}; | |
componentDidMount() { | |
document.getElementsByClassName("Enroll")[0].addEventListener("click", this.enroll); | |
} | |
enroll = You => { | |
IncwellBootcamp.Enroll(You); | |
} | |
haveOneOnOneMentorShip = () => { | |
IncwellBootcamp.OneOnOneMentorShip(); | |
}; | |
learnTechnicalSkills = () => { | |
IncwellBootcamp.learnTechnicalSkills(); | |
}; | |
buildPortfolio = () => { | |
IncwellBootcamp.buildPortfolio(); | |
}; | |
preparationForInterview = () => { | |
IncwellBootcamp.preparationForInterview(); | |
}; | |
learnBestPractices = () => { | |
IncwellBootcamp.learnBestPractices(); | |
}; | |
contributeInOpenSourceProject = () => { | |
IncwellBootcamp.contributeInOpenSourceProject(); | |
}; | |
learnSoftwareDevelopmentProcess = () => { | |
IncwellBootcamp.learnSoftwareDevelopmentProcess(); | |
}; | |
render() { | |
return ( | |
<div className="body-container"> | |
<div className="main" /> | |
{Object.keys(this.state.contents).map(key => ( | |
<Enroll | |
key={key} | |
index={key} | |
enroll={this.enrollIncwellBootcamp} | |
OneOnOne={this.haveOneOnOneMentorShip} | |
learn={this.learnTechnicalSkills} | |
profile={this.buildPortfolio} | |
preperation={this.preparationForInterview} | |
practices={this.learnBestPractices} | |
contribute={this.contributeInOpenSourceProject} | |
softwaredev={this.learnSoftwareDevelopmentProcess} | |
/> | |
))} | |
</div> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment