JSFiddle - React, Tailwind, and code Playground

by evgkch

JavaScript

function getState(cb){
	const a = {};
	console.log(cb.toString());
}

getState(state => {
	state.a.b = 1;
})