In the last episode we’ve introduced the useReducer hook to manager out courses state in App component. So far, we’ve only implemented one action type in our reducer function: SET_COURSES. In this episode we’re going to enhance the reducer function by introducing another action typer for deleting a single course. Furthermore we’re implementing the necessary changes to add a Delete button and a corresponding click event handler function which is used to dispatch the new action type.
This is a CodingTheSmartWay.com tutorial.
---------------------
Musik:
Night Owl by Broke For Free is licensed under a Creative Commons Attribution License.
(http://freemusicarchive.org/music/Bro...)
#react #reactjs #javascript #frontend #webdevelopment
Watch video Modern React From The Beginning - Episode 12: Adding A Delete Action online without registration, duration hours minute second in high quality. This video was added by user CodingTheSmartWay 12 May 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 914 once and liked it 25 people.