/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 * @providesModule AlgoliaDocSearch
 */

var AlgoliaDocSearch = React.createClass({
  render: function() {
    return (
      <div className="algolia-search-wrapper">
        <input id="algolia-doc-search" type="text" placeholder="Search docs..." />
      </div>
    );
  }
});

module.exports = AlgoliaDocSearch;

/**
 * Copyright (c) 2015-present, Facebook, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree. An additional grant
 * of patent rights can be found in the PATENTS file in the same directory.
 *
 * @providesModule AlgoliaDocSearch
 */

var AlgoliaDocSearch = React.createClass({
  render: function() {
    return (
      <div className="algolia-search-wrapper">
        <input id="algolia-doc-search" tabindex="0" type="text" placeholder="Search docs..." />
      </div>
    );
  }
});

module.exports = AlgoliaDocSearch;

Add tabindex attribute to searchbar
Add tabindex attribute to searchbar

Summary:
Explain the **motivation** for making this change. What existing problem does the pull request solve?

This is small improvement to docs webpage.
I'm tired of clicking on searchbar with mouse/touchpad, so I've added a `tabindex` attribute to it, so it can be now focused with `Tab` key.

I think this greatly improves user experience on documentation searching.

**Test plan (required)**

??? Just click on `Tab` and it will focus. Should I test it really?

**Code formatting**

Attributes are sorted alphabetically, I've inserted new attribute in this order, after `id` and before `type` attributes.
Closes https://github.com/facebook/react-native/pull/8319

Differential Revision: D3470858

fbshipit-source-id: 01240bdf1432d9873324ddee38be256dfab93df2
