Let's quickly review creating a new project utilizing todos.
-
Init a new Project
import React, { Component } from 'react'; | |
import './App.css'; | |
import seedTweets from './seeds.js'; | |
class Tweet extends Component { | |
render() { | |
return( | |
<div className="tweet"> | |
<p className="tweetText">{ this.props.text }</p> | |
<p className="tweetMetadata"> |
import React, { Component } from 'react'; | |
import './App.css'; | |
import config from './config.js'; | |
class Form extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
celebrity: '', | |
stalker: '', |
I hereby claim:
To claim this, I am signing this object:
/** | |
* | |
* A quick, janky script to generate & colocate Storyshots. Just saving this in case all hell. | |
* | |
*/ | |
const fs = require("fs"); | |
const path = require("path"); | |
const elementsDir = path.join(__dirname, "..", "src", "components", "elements"); | |
const modulesDir = path.join(__dirname, "..", "src", "components", "modules"); |
// Article.jsx | |
import React from "react"; | |
import { createFragmentContainer, graphql } from "react-relay"; | |
import CommentList from "./CommentList.jsx"; | |
class Article extends React.Component { | |
render() { | |
return ( |