Here’s a minimal but complete example of a Lightning web component that uses
AppReviewService to request an app review.
The component’s HTML template contains a button to request an app review.
Each phase of the app review request writes a console message.