Gutenberg RangeControl
When using a control that modifies a block attribute, you need to set the value of the control to the value of the attribute and the onChange function needs to change the attribute using the setAttributes function: el( RangeControl, { label: ‘Columns’, value: props.attributes.my_attribute, initialPosition: 1, min: 0, max: 3, onChange: function( val ) { … Read more