contact-join-poc

Install
npm install --save contact-join-poc
Usage
import React, { Component } from 'react'
import WelcomeMsg from 'contact-join-poc'
class Example extends Component {
getLoginUsername = () => {
//code that gets the username from session
const loginUsername = "Andre";
return loginUsername;
}
goToHomePageHandler = () => {
//code that redirects to home page
console.log("goToHomePage");
}
render () {
return (
<WelcomeMsg username={this.getLoginUsername()} goToHomePage={this.goToHomePageHandler} />
)
}
}
License
MIT ©