react报错:This synthetic event is reused for performance reasons.

react 报错:Warning: This synthetic event is reused for performance reasons. If you're seeing this, you're accessing the property target on a released/nullified synthetic event. This is set to null. If you must keep the original synthetic event around, use event.persist(). See https://fb.me/react-event-poo... for more information.

方法:

错误调用:

正确调用:

你可能感兴趣的:(react.js)