* More docs onFocus and onBlur events
Including more substantial documentation around the `onFocus` and `onBlur` events that aren't so common sense on first look.
* Update content/docs/reference-events.md
Co-authored-by: Darsh Shah <imdarshshah@gmail.com>
* Update reference-events.md
Adding an example of `relatedTarget` to determine orgin of onblur or onfocus events
* Update reference-events.md
* Update content/docs/reference-events.md
Fixing `onBlur` example bug.
Co-authored-by: Darsh Shah <imdarshshah@gmail.com>
* Update reference-events.md
Fixing spacing in `onBlur` `onFocus` examples and tagging them with `javascript`
* Update reference-events.md
* Update reference-events.md
* Update reference-events.md
Co-authored-by: Darsh Shah <imdarshshah@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
* remove event pooling and SyntheticEvent#persist from documents
Syntheticevent#event exists in v17, but it does nothing at the version
* add a page for legacy event pooling for _redirects
* add a warning e.persist() is no longer pooled
* Update legacy-event-pooling.md
* docs: update a redirect link for event pooling
* Update legacy-event-pooling.md
* Update legacy-event-pooling.md
* Update reference-events.md
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Since persist() is referred to in the doc as a method for disabling event pooling, that must mean it's part of the SyntheticEvent API.
I'm proposing to state it more explicitly so that there's no doubt for newcomers like me whether it is the SyntheticEvent or the actual JS event that has the method.