# Creating Components in Apex

Creating components on the server side in Apex, using the `Cmp.<myNamespace>.<myComponent>` syntax, is deprecated. Use `$A.createComponent()` in client-side JavaScript code instead.

**See Also**

- [Dynamically Creating Components](/docs/platform/aura-platform/guide/js-cb-dynamic-cmp-async.md)
