Skip to content

Instantly share code, notes, and snippets.

@khadkarajesh
Created May 5, 2019 16:07
Show Gist options
  • Save khadkarajesh/d7467945d69f57e7d5db1aac37f671db to your computer and use it in GitHub Desktop.
Save khadkarajesh/d7467945d69f57e7d5db1aac37f671db to your computer and use it in GitHub Desktop.
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