Question Reactjs experts, why not fire the limit positions of the left?

Run the code. Drag the green block, please note that the height he clearly stated, that can't be moved up or down. But on the left edge of such documentation does not work, please tell me why? If you bring the block to the left edge

https://codepen.io/Sinevik/pen/KQVaGQ

K4G87tM7QvOtCOS1FEgtsw.png
June 8th 19 at 16:30
1 answer
June 8th 19 at 16:32
Solution
Once you have all wordy and exceedingly overcomplicated. Why completely override obj several times to call setState? Maybe we should create the object once, immediately with the desired property values? Somehow so.
Well just starting to program) - Harrison_McLaughl commented on June 8th 19 at 16:35
But still, I wonder why it doesn't work - Harrison_McLaughl commented on June 8th 19 at 16:38

Find more questions by tags React