* Clarify the definition of "inside conditions"
* Make clarification more concise
Co-authored-by: Ricky <rickhanlonii@gmail.com>
* Remove accidental extra period
Co-authored-by: Ricky <rickhanlonii@gmail.com>
This is
1) using real CRA unnecessarily despite being in the browser so is slow to boot
2) shows "error" immediately to me and doesn't load
3) doesn't seem to get updated with newer React releases
We can readd it if it's fixed and doesn't have these problems (which none of the other templates do).
* 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>
The sections above this describe how to use the arrow function to bind functions to the component instance to avoid explicit binding in the constructor. This example though, uses both the arrow function and explicitly binds the function. I realise the point of this particular example isn't to describe the binding process, but considering the sections that immediately proceed it, I think it'd be good to avoid confusion here.