How to use Props in Vue
2021-9-12 Less than 1 minute
# How to use Props in Vue
# What are props?
Props are a way to pass data between variables. You can write a component in one document to and call it in another.
# What are props used for?
Same as the first question. To pass data between two documents. It helps reduce repetitive code.
# Where can props be used or accessed?
- Props are passed down the component tree, it cannot pass up.
- Props are read-only and cannot be modified