The docs are still using the older style api as examples, ideally this should also have examples with the recommended composition api.