title: React js Cannot assign to read only property
body: <p>I have two components as category and category content.Category is the parent component.</p>
  <pre><code>function handlePageSize(pageValue) {
      props.pageSize = pageValue;
      // React.cloneElement(element, pageSize = pageValue)
  }
      return (
          &lt;Fragment&gt;
              &lt;Meta name=&quot;description&quot; content={metaDescription} /&gt;
              &lt;CategoryContent
                  categoryId={id}
                  classes={classes}
                  data={loading ? null : data}
                  pageControl={pageControl}
                  sortProps={sortProps}
                  onSelectSize = {handlePageSize}
              /&gt;
          &lt;/Fragment&gt;
      );
  };
  
  Category.propTypes = {
      classes: shape({
          gallery: string,
          root: string,
          title: string
      }),
      id: number,
      pageSize: number
  };
  
  Category.defaultProps = {
      id: 3,
      // TODO: This can be replaced by the value from `storeConfig when the PR,
      // https://github.com/magento/graphql-ce/pull/650, is released.
      pageSize: 8
  };
  </code></pre>
  <p>In category component there exists the pageSize prop.I need to change that value when I select a dropdown value in my child component categorycompontents.Following is child component</p>
  <pre><code>    let selectedValue = null;
      function onChangePageSize(event) {
          selectedValue = event.target.value
          onSelectSize(selectedValue);
      }
     &lt;select id=&quot;lang&quot; onChange={onChangePageSize} defaultValue={8} value={selectedValue}&gt;
                              &lt;option value=&quot;8&quot;&gt;8&lt;/option&gt;
                              &lt;option value=&quot;16&quot;&gt;16&lt;/option&gt;
                              &lt;option value=&quot;24&quot;&gt;24&lt;/option&gt;
                          &lt;/select&gt;
  </code></pre>
  <p>I get the error 'Cannot assign to read only property' when I select the value.Is there any other way to do this.I need to change number of items displayed in the page instantly when I select my dropdown value.</p>