A new requirement has arisen. As well as being able to raise or lower a column by one, the client wants to be able to set a column to a specific height by entering the height in a text input, like this:
- What should a "set height" action look like?
- Will your state object need to change to accommodate this new requirement?
- Add the
<input>
and<button>
elements to theColumn
component and check that they appear in the UI. - Add an action type, e.g.
SET_HEIGHT
. - Add an action creator for this action.
- Dispatch an action of this type when the
Set
button is clicked. Remember to include aheight
orvalue
in the action to represent the desired height.