Skip to Content
React Cookbook
book

React Cookbook

by Carlos Santana Roldán
August 2018
Intermediate to advanced
580 pages
11h 5m
English
Packt Publishing
Content preview from React Cookbook

There's more...

There are more events you can use in React:

Keyboard events:

  • onKeyDown is executed when a key is depressed
  • onKeyPress is executed after the key is released, but before onKeyUp is triggered
  • onKeyUp is executed last after the key is pressed

Focus events:

  • onFocus is executed when a control receives focus
  • onBlur is executed when a control loses focus

Forms events:

  • onChange is executed when the user changes the value in a form control
  • onSubmit is a particular prop for <form> that is called when a button is pressed, or when the user hits the return key within a field

Mouse events:

  • onClick is when the mouse button is pressed and released
  • onContextMenu is when the right button is pressed
  • onDoubleClick is when the user performs ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

React Cookbook

React Cookbook

David Griffiths, Dawn Griffiths

Publisher Resources

ISBN: 9781783980727Supplemental Content