Validating React component props with prop-types

Published: 19 February 2020
on channel: LogRocket
16,384
163

Learn how to improve your React components by validating props with prop-types

Introduction — 00:00
Getting started with prop-types — 01:24
Validating component props with prop-types — 03:17

Try LogRocket for free: https://logrocket.com/?yt24

Github repo: https://github.com/karlhadwen/react-p...

LogRocket is a frontend application monitoring solution that lets you replay problems as if they happened in your own browser. Instead of guessing why errors happen, or asking users for screenshots and log dumps, LogRocket lets you replay the session to quickly understand what went wrong. It works perfectly with any app, regardless of framework, and has plugins to log additional context from Redux, Vuex, and @ngrx/store.

In addition to logging Redux actions and state, LogRocket records console logs, JavaScript errors, stacktraces, network requests/responses with headers + bodies, browser metadata, and custom logs. It also instruments the DOM to record the HTML and CSS on the page, recreating pixel-perfect videos of even the most complex single-page apps.

Try it for free: https://logrocket.com/signup/


On this page of the site you can watch the video online Validating React component props with prop-types with a duration of hours minute second in good quality, which was uploaded by the user LogRocket 19 February 2020, share the link with friends and acquaintances, this video has already been watched 16,384 times on youtube and it was liked by 163 viewers. Enjoy your viewing!