Paul:
This is the React starter project we made/use at my job…
https://github.com/t7/react-starter
You can see an example of it running here…
Paul:
This is the React starter project we made/use at my job…
https://github.com/t7/react-starter
You can see an example of it running here…
class MyComponent extends React.Component { | |
render() { | |
const {location, todos, users} = this.props; | |
// | |
// ... do things with your variables! | |
// | |
return ( | |
<MyChild {...{location, todos, user}} /> | |
// equivalent to: | |
// <MyChild location={location} todos={todos} user={user} /> |
To remove a submodule you need to:
#add 'node_modules' to .gitignore file | |
git rm -r --cached node_modules | |
git commit -m 'Remove the now ignored directory node_modules' | |
git push origin <branch-name> |
------------------------------- | |
The code for the contact form | |
------------------------------- | |
<div id='contact-box' class="group"> | |
<div class="span6 clear"> | |
<form action="/" method="post" class="well"> | |
<label for="name">Your Name:</label> | |
<input type="text" name="name" class="span4" placeholder="John Smith..."> | |
<label for="email">Your email address:</label> |