title: why value is not set on dropdown in react js (allready set value props)?
body: <p>I am taking help from this link
  <a href="https://stackoverflow.com/questions/57622068/how-to-set-value-in-dropdown-in-react-js">how to set value in dropdown in react js?</a></p>
  
  <p>set the value of <code>dropdown</code>.but it is not setting value in dropdown.</p>
  
  <p>I am getting dropdown data after few seconds 3000 and then I need to set value on dropdown</p>
  
  <p>expected output Aland Islands should be selected. <code>{ key: "ax", value: "ax", text: "Aland Islands" },</code></p>
  
  <p>here is my code
  <a href="https://codesandbox.io/s/sharp-rhodes-140fm" rel="nofollow noreferrer">https://codesandbox.io/s/sharp-rhodes-140fm</a></p>
  
  <pre><code>const SingleSelectAutoComplete = props =&gt; {
    const { onSearchChange, input, label, data, value } = props;
    return (
      &lt;div&gt;
        &lt;label&gt;{label}&lt;/label&gt;
        &lt;Dropdown
          {...props.input}
          clearable
          fluid
          search
          closeOnChange
          onChange={(e, data) =&gt; {
            return input.onChange(data.value);
          }}
          onSearchChange={onSearchChange}
          selection
          options={data}
          value={value}
          placeholder="Select Country"
        /&gt;
      &lt;/div&gt;
    );
  };
  
  
  
  
  const val = "ax";
    const [state, setState] = useState([]);
    const [value, setValue] = useState([]);
  
    setTimeout(() =&gt; {
      setState(data);
      setValue("ax");
    }, 2000);
  </code></pre>