I'm trying to trigger some events on the form input fields built with React. With javascript or Query, it's so easy to trigger that with .focus() .click() etc
They don't seem to trigger on React inputs and I'm unable to find similar events. Is there a similar way for React inputs which doesn't require rendering JSX etc. just something that can be done without accessing the actual React code
$('#selector').trigger('blur');
$('#selector').trigger('focus');
$('#selector').trigger('click');
$('select#selector').prop('selected', true);