diff --git a/.gitignore b/.gitignore index fd4f2b06..80e5be48 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .DS_Store + diff --git a/01-introduction-to-react/jsx-and-babel/app.jsx b/01-introduction-to-react/jsx-and-babel/app.jsx new file mode 100644 index 00000000..5b0c41ed --- /dev/null +++ b/01-introduction-to-react/jsx-and-babel/app.jsx @@ -0,0 +1,95 @@ + +// part 1 +class FirstComponent extends React.Component { + render() { + return ( +
Hi, my name is {this.props.name}!
+ ) + + + } +} +// part 2 +class Tweet extends React.Component { + render() { + return ( +{this.props.message}
+Learn some information about this person
+