contact-join-poc

npm install --save contact-join-poc

Usage no npm install needed!

<script type="module">
  import contactJoinPoc from 'https://cdn.skypack.dev/contact-join-poc';
</script>

README

contact-join-poc

NPM JavaScript Style Guide

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 ©