message: fix(react): moved initial state inside component func
diff: @@ -47,22 +47,6 @@ const _trimAndLower = valueString => valueString.toLowerCase().trim();
  */
  const _getSuggestionValue = suggestion => suggestion[0];
  -/**
  - * Initial state of the autocomplete component
  - *
  - * @type {{val: string, prevSuggestions: Array, suggestions: Array, suggestionContainerVisible: boolean}}
  - * @private
  - */
  -const _initialState = {
  - val: '',
  - suggestions: [],
  - prevSuggestions: [],
  - suggestionContainerVisible: false,
  - isSearchOpen: false,
  - lc: 'en',
  - cc: 'us',
  -};
  -
  /**
  * Reducer for the useReducer hook
  *
  @@ -114,9 +98,22 @@ function _reducer(state, action) {
  * @class
  */
  const MastheadSearch = ({ placeHolderText, renderValue, searchOpenOnload }) => {
  - if (searchOpenOnload) {
  - _initialState.isSearchOpen = true;
  - }
  + /**
  + * Initial state of the autocomplete component
  + *
  + * @type {{val: string, prevSuggestions: Array, suggestions: Array, suggestionContainerVisible: boolean}}
  + * @private
  + */
  + const _initialState = {
  + val: '',
  + suggestions: [],
  + prevSuggestions: [],
  + suggestionContainerVisible: false,
  + isSearchOpen: searchOpenOnload,
  + lc: 'en',
  + cc: 'us',
  + };
  +
  const [state, dispatch] = useReducer(_reducer, _initialState);
  useEffect(() => {
  