-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add search to docs #530
Add search to docs #530
Conversation
path="/docs" | ||
key={item.title} | ||
render={() => { | ||
return renderSidebar(item, setSidebarOpenState, docMap) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make renderSidebar
just a stateless component that you render here? I understand that using the component prop wouldn't work because you can't pass custom props. Sidebar could be a component to leverage React's diffing algorithm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except for component nitpick.
What:
Add search to docs
Why:
Closes #527
How:
Algolia DocSearch.
Checklist:
https://deploy-preview-530--emotion.netlify.com