Skip to content
Prev Previous commit
Next Next commit
Update packages/components/src/utils/hooks.js
Co-authored-by: Andrew Duthie <andrew@andrewduthie.com>
  • Loading branch information
Jon Quach and aduth authored May 5, 2020
commit b58e9cb5229156c4c758f0f2c34f3810a5f09f00
2 changes: 1 addition & 1 deletion packages/components/src/utils/hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { useEffect, useRef, useState } from '@wordpress/element';
* https://reactjs.org/docs/forms.html#controlled-components
*
* @param {any} initialState The initial state value.
* @return {Array<any, Function>} The controlled value and the value setter.
* @return {[*, Function]} The controlled value and the value setter.
*/
export function useControlledState( initialState ) {
const [ state, setState ] = useState( initialState );
Expand Down