Check out example codes for "how do i update my gatsby version?". It will help you in understanding the concepts better.

Code Example 1

npm i [email protected]

Learn ReactJs, React Native from akashmittal.com