State vs Props in React js
Props get passed to the component similar to function parameters whereas state is managed within the component similar to variables declared within a function.
Props get passed to the component similar to function parameters whereas state is managed within the component similar to variables declared within a function.