Call 2 functions within onChange event

后端 未结 3 461
忘了有多久
忘了有多久 2021-01-31 03:50

I\'m a bit stuck with my component, I need to call onChange from props so


         


        
3条回答
  •  花落未央
    2021-01-31 04:18

    You can do it by putting the two functions in double quotes:

    
    

    This should work. But it would be better if you call the second function within the first one:

    function testFunction() {
        onChange();
        handleChange();
    }
    

提交回复
热议问题