As the composition api of Vue has ported for the current version, v2, apparently we can start to use it before the release of the new version.
The examples generally feature a newly introduced setup() hook, and it is depicted alone and or along with basic JS functions.
At first glance I thought it is simply a place for initializing reactive data and I'd ask sth like: in what cases should it be used.
However, when you dig more, it looks as if composition API cannot be implemented without it. So, what is the thing with that hook and can it be used with data, methods, computed etc. fields outside it?