github-reason-react-tutorial icon indicating copy to clipboard operation
github-reason-react-tutorial copied to clipboard

Typo in your blog?

Open idkjs opened this issue 8 years ago • 0 comments

You have this:

    let repoItem =
      switch (self.state.repoData) {
      | Some(repo) => <RepoItem repo=repo />
      | None => ReasonReact.stringToElement("Loading")
      };
    <div className="App">
      **<h1>{ReasonReact.stringToElement("Reason Projects")</h1>**
      repoItem
    </div>
  }
  • should be this?
render: (self) => {
    let repoItem =
      switch (self.state.repoData) {
      | Some(repo) => <RepoItem repo=repo />
      | None => ReasonReact.stringToElement("Loading")
      };
    <div className="App">
      **<h1>{ReasonReact.stringToElement("Reason Projects")}</h1>**
      repoItem
    </div>
  }

idkjs avatar Nov 16 '17 13:11 idkjs