Question: I have a simple app for displaying data. The state changes from a select. However I want the default select option to be united kingdom. Currently the option defaults to Afghanistan as it's the first in the alphabet. 

```js
export default function CountrySelect() {
  const [country, setCountry] = useState('GBR');
  const countries = useFetch('https://covid19.mathdro.id/api/countries');

  if (!countries) return null;

  const countryArr = Object.entries(countries.countries).map(([key, value]) => {
    return {
      name: `${key}`,
      code: `${value}`
    };
  });

  return (
    <div>
      <h2>Showing: {country}</h2>
      <select
        onChange={(event) => setCountry(event.target.value)}
        defaultValue={country}>
        {countryArr.map((country) => (
          <option value={country.code} key={country.name}>
            {country.name}
          </option>
        ))}
      </select>
      <Info url={`https://covid19.mathdro.id/api/countries/${country}`}></Info>
    </div>
  );
}

```

To clarify the country state is 'GBR' and data from 'GBR' or United Kingdom is displayed. It's the tag which I'm having the issue with.

Answer: 
If you are using XAMPP for Localhost(Apache Server) and MongoDB Atlas as the Database you should refer this [**Jenssegers**](https://github.com/jenssegers/laravel-mongodb).

```
$ composer require jenssegers/mongodb

```

and make sure to install **MongoDB extension to XAMPP** [**XAMPP + MongoDB Configuration**](https://learnedia.com/install-mongodb-configure-php-xampp-windows/)(Do Until Step 4)

.env
----

```
DB_CONNECTION=mongodb
DB_HOST=xxxx-shard-00-00-uggj0.mongodb.net
DB_PORT=27017
DB_DATABASE={your_database}
DB_USERNAME={username_when_creating_cluster}
DB_PASSWORD={password_when_creating_cluster}

```

config/database.php
-------------------

```
   'mongodb' => [
            'driver' => 'mongodb',
            'dsn' => 'mongodb+srv://{username_when_creating_cluster}:{password_when_creating_cluster}@{your_cluster_name}.bhtvj.gcp.mongodb.net/{your_database}?retryWrites=true&w=majority',
            'database' => '{your_database}',
        ],

```

Please note that above **dsn** can easily get from [MongoDB|Atlas](https://cloud.mongodb.com/) and you should only edit credential for the cluster and the database name.

Step 1
------

[![Step 1](https://i.stack.imgur.com/M0OtV.jpg)](https://i.stack.imgur.com/M0OtV.jpg)

Step 2
------

[![Step 2](https://i.stack.imgur.com/XduxY.jpg)](https://i.stack.imgur.com/XduxY.jpg)

Step 3
------

[![Step 3](https://i.stack.imgur.com/U0JAc.jpg)](https://i.stack.imgur.com/U0JAc.jpg)

Hope this is the answer you looking for Goodluck!
I don't know what you really want in this question, but to send a request, you can use 
HTML tags or AJAX