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

documentation uses invalid JSX #3

Open
jonotron opened this issue Oct 2, 2018 · 1 comment
Open

documentation uses invalid JSX #3

jonotron opened this issue Oct 2, 2018 · 1 comment

Comments

@jonotron
Copy link
Member

jonotron commented Oct 2, 2018

The README has incorrect JSX.

<ReactLunr
  id="id"
  fields=["name", "body"]
  documents=[
    {name: 'aldrin', body:'followed neil armstrong to the moon'},
    {name: 'armstrong', body: 'first to land on the moon'}
  ]>
  {results => result.map(result => (
    <h1>{result.item.name}</h1>
    <p>{result.item.body}</p>
  ))}
</ReactLunr>

It should be fixed to valid JSX

@jonotron jonotron added the good first issue Good for newcomers label Oct 2, 2018
@jonotron jonotron removed the good first issue Good for newcomers label Oct 12, 2018
@Dragonfore
Copy link
Contributor

Going to work on this!

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

2 participants