JSFiddle - React, Tailwind, and code Playground

by lasha

JavaScript

let props = {
	onChange: function(){},
  value: 'thing',
  minvalue: 5
}

function onChangeMin({
  target: {
    value
  }
}) {
  const {
    minValue = 0, onChange, valuevalue: previousValue
  } = props;
  
  console.log({minValue}, {onChange}, {value}, {previousValue})
};


onChangeMin({target: { value: 10 }})