Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Typo in your blog? #2

Open
idkjs opened this issue Nov 16, 2017 · 0 comments
Open

Typo in your blog? #2

idkjs opened this issue Nov 16, 2017 · 0 comments

Comments

@idkjs
Copy link

idkjs commented Nov 16, 2017

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>
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant