DEV Community

skptricks
skptricks

Posted on

A complete guide to default props in React

Post Link : A complete guide to default props in React

This tutorial explains how to use default props in react application. A React component is simply a JavaScript function that takes an object of arbitrary inputs known as props and returns React elements describing what should be rendered on the UI. Similarly in this example we are using static property of ES6 class that will pass static object parameter as props in react application.

A complete guide to default props in React

Top comments (0)