Skip to content

Advent-Of-Vue/2022-recursive-tree-problem

Repository files navigation

Advent Of Vue 2022

If you didn't get here from an email, read this section! Skip it otherwise.

Advent Of Vue is a series of 24 Vue coding challenges that are sent out every day from December 1 to December 24 via a dedicated newsletter. If you'd like to receive more of these puzzles in the future, go ahead and sign up!

Problem description

Time to make a tree!

You'll need to update the ChristmasTree component so that it renders, well, a Christmas tree.

To get you started in the right direction — you'll need to use recursion to make this happen.

Hints

Open the hints.md file if you need some help!

Example of a solution in action

This is what it should look like when you're done: Solution demo

Author

Hey, it's Michael Thiessen here!

My full-time job is teaching about Vue, through articles, my weekly newsletter, and through my courses and books.

You can sign up to get weekly tips and tricks on Vue here: https://michaelnthiessen.com/newsletter

I'm on Twitter: https://twitter.com/MichaelThiessen

Here are my courses:

Credits

Based on a Stackblitz project by tony19