linkState (key, eventPath) {
    let c = this._linkedStates,
      cacheKey = key + '|' + (eventPath || '')
    return c[cacheKey] || (c[cacheKey] = createLinkedState(this, key, eventPath))
  }
/** Returns a function that sets a state property when called.
   *    Calling linkState() repeatedly with the same arguments returns a cached link function.
   *
   *    Provides some built-in special cases:
   *        - Checkboxes and radio buttons link their boolean `checked` value
   *        - Inputs automatically link their `value` property
   *        - Event paths fall back to any associated Component if not found on an element
   *        - If linked value is a function, will invoke it and use the result
   *
   *    @param {string} key                The path to set - can be a dot-notated deep key
   *    @param {string} [eventPath]        If set, attempts to find the new state value at a given dot-notated path within the object passed to the linkedState setter.
   *    @returns {function} linkStateSetter(e)
   *
   *    @example Update a "text" state value when an input changes:
   *        <input onChange={ this.linkState('text') } />
   *
   *    @example Set a deep state value on click
   *        <button onClick={ this.linkState('touch.coords', 'touches.0') }>Tap</button
   */
Returns a function that sets a state property when called.
Calling linkState() repeatedly with the same arguments returns a cached link function.



@param {string} key                The path to set - can be a dot-notated deep key
@param {string} [eventPath]        If set, attempts to find the new state value at a given dot-notated path within the object passed to the linkedState setter.

@example Update a "text" state value when an input changes:


@example Set a deep state value on click
Tap</button
Returns a function that sets a state property when called . Calling linkState () repeatedly with the same arguments returns a cached link function . @param { string } key The path to set - can be a dot - notated deep key @param { string } [ eventPath ] If set attempts to find the new state value at a given dot - notated path within the object passed to the linkedState setter . @example Update a " text " state value when an input changes : @example Set a deep state value on click Tap< / button
linkState (key, eventPath) {
    let c = this._linkedStates,
      cacheKey = key + '|' + (eventPath || '')
    return c[cacheKey] || (c[cacheKey] = createLinkedState(this, key, eventPath))
  }
linkState ( key , eventPath ) { let c = this . _linkedStates , cacheKey = key + '|' + ( eventPath || '' ) return c [ cacheKey ] || ( c [ cacheKey ] = createLinkedState ( this , key , eventPath ) ) }
Returns a function that sets a state property when called.
Returns a function that sets a state property when called .