React simulated text box change event?

Hello everyone, if I want to simulate a change event of a text box on a react website.

and I don"t have react source code. I want to write code simulation on chrome"s console. What should I do?

if it"s your own react project, it"s easy to simulate, just use the ReactTestUtils.Simulate.change method.

of course, it doesn"t work by modifying input value, and then change,. The reason may be that the modification triggers the handleChange event, and when the setState is triggered, the event parameter passed is not quite correct. It"s not fully simulated.

has a boss ever done this?

Mar.04,2021

official examples of react are all written in code pen. Please refer to
https://codepen.io/pen?&edito.

.
Menu