Coding Challenge: Convert Options to Composition
Convert the Options API code to use the Composition API.
We'll cover the following
Problem statement
In this challenge, using the provided Options API example, convert it to the Composition API equivalent. The main objective is to click the button to add a new to-do item to the todos
array, and to update the result in the browser.
Below is a file using the Options API to add to-do items to an array:
Get hands-on with 1400+ tech skills courses.