无法正常运行的演示https://codesandbox.io/s/l20n739xqz
tab-demo.js
<ChipsButton
className={classes.chipContainer}
chipName="button test"
/>
<div className="card" style={{ border: "1px solid red" }}>
grey shade should happen here
</div>
chips-dialog.js
handleChangeText(e) {
//debugger;
console.log("handleChangeText--->", e);
this.setState({ value: e.target.value });
}
chips-dialog.js
timeout = () => {
setTimeout(() => {
this.setState((state, props) => {
return { cardData: "card data testing testing" };
});
}, 2000);
};
keyPress(e) {
// debugger;
console.log("keyPress--->", e.target.value);
if (e.keyCode == 13) {
console.log("value", e.target.value);
// pass the value from here to the parent component to start applying skeleton css
this.timeout();
// put the login here
}
}