Kotlin / kotlin-fullstack-sample

Kotlin Full-stack Application Example
https://kotlinlang.org
Apache License 2.0
1.21k stars 169 forks source link

Add example of a functional component #9

Open StokeMasterJack opened 7 years ago

StokeMasterJack commented 7 years ago

In React, we have functional components that look like this:

function Welcome(props) {
  return <h1>Hello, {props.name}</h1>;
}

It would be nice to include one of those (in Kotlin of course) in this kotlin-fullstack-sample