Add React and TS to webpacker; add react-rails gem

This commit is contained in:
riggraz
2019-08-25 14:34:20 +02:00
parent 01cc6eb96a
commit 24339c0e08
14 changed files with 304 additions and 7 deletions

View File

@@ -0,0 +1,19 @@
import * as React from "react";
interface IProps {
name: string;
}
class Hello extends React.Component<IProps> {
render () {
const {name} = this.props;
return (
<React.Fragment>
<span>Hello {name}!</span>
</React.Fragment>
);
}
}
export default Hello;