

The javascript code is written in the controller, helper, and renderer part of the component bundle. The component uses JavaScript on the client-side and Apex on the server-side. A basic lightning component contains the design of a page in Html with some lightning tags. The bundle contains all the required resources related to a component like javascript controller, javascript helper, renderer, CSS styles, etc. Once created a created lightning component is a bundle of code. Lightning Experience and Salesforce1 Application.You can use components in many different contexts. I will explain to you the individual components of a lightning component bundle, and show how to create one with an example.

Components are the self-contained and reusable units of an app. This enables you to build apps with sophisticated UIs. A component is a user interface developed using HTML, CSS, JavaScript, and other Web-enabled code. In Salesforce using Lightning components, a developer can build applications and pages by assembling components created by other developers.
