const handleChange2 = (e: any) => { const name = e.target.value; setCabinsSelect((prevState: any) => { return { ...prevState, [name]: { ...prevState[name] = { ...prevState[name], preSelect: e.target.checked } } } }) };
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter