* Take system's theme for the site
* Add IIFE for dark mode in document load and preserve in localStorage
* Add types
* Fix SSR and respect override
Co-authored-by: Dan Abramov <dan.abramov@me.com>
* Fix case-sensitive search term in example.
Converting both the name and search value to lowercase solves case sensitive searching.
* Update thinking-in-react.md
* Update thinking-in-react.md
* Update thinking-in-react.md
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
The `appId` was retrieved from props but the `<Search>` component is never instantiated with props. So the preconnect link targeted an unknown search cluster:
```html
<link rel="preconnect" href="https://undefined-dsn.algolia.net" crossorigin="true">
```
This fixes the preconnect link by getting the `appId` from the website config.