Migrating to Lightning Components from Visualforce

In this post, I'm sharing my tips to my fellow salesforce developers to get the transition from visualforce to lightning component development. When learning lightning component always tries to relate the functionality with visualforce this will help you understand better.

1. Learn JavaScript

Most of the salesforce developers, when working with the visualforce pages they may not get an opportunity to utilize the JavaScript/jQuery completely because visualforce component has native javascript functionalities like button click events, action function, dynamic refresh component etc. If you are not familiar with JavaScript then that is your first step to learning lightning. Check this site to learn about JavaScript https://jstherightway.org/

2. Business logic

We always use visualforce page as front-end to view the information and keep all our business logic in the apex controller class but in the lightning component development, the approach is entirely different. We write all our business logic at client side which is in the lightning component and use apex controller class as server side component to perform DML operations.


3. User experience (UX)

By default visualforce page tag will provide the native salesforce classic UI but in the lightning component we have to use lightning design system to get native salesforce lightning experience for your components. So be familiar with the lightning design system when you start your development. One wow factor about lightning design system is, it’s completely responsive. Check this link to know more about the lightning design system - https://www.lightningdesignsystem.com/

4. Debug

You must get good knowledge with the techniques and tools to debug the lightning components. Enable the debug mode for the lightning component and install the Salesforce lightning Inspector chrome extension package which saves your time in debugging the issue at client side components. You can also use console.log() in the lightning component to print the values in the browser console to debug the values

5. Documentation

Salesforce has provided tons of materials for developers at free of cost to understand and speed up the learning process. Trailhead has modules and small project to explore about lightning components

Trailhead Modules - https://trailhead.salesforce.com/

Lightning Developer Guide - https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/intro_framework.htm

You can also find more documentation, webinar, and blogpost in the developer document site - https://developer.salesforce.com/search?q=Lightning

Happy Lightning :)


要查看或添加评论,请登录

Karanraj S.的更多文章

  • Lightning Picklist Path Component

    Lightning Picklist Path Component

    Create your custom path for picklist field in any standard and custom objects. The new lightning picklistpath component…

  • How to get help in Salesforce

    How to get help in Salesforce

    Salesforce has tons of documentation to learn about its platform and also it has Trailhead, one of the best ways to…

    3 条评论
  • Salesforce and littleBits Integration - Part 2

    Salesforce and littleBits Integration - Part 2

    In my previous salesforce and littleBits Integration post, I have explained about sending information from the…

  • Salesforce and LittleBits integration - IoT device

    Salesforce and LittleBits integration - IoT device

    Integrating Salesforce with IoT devices (Internet of Things) is one of my favorite topics and I was waiting for a long…

    2 条评论
  • Dynamic Lightning Table

    Dynamic Lightning Table

    Dynamic lightning table component helps you to easily display any object records in salesforce in a table format with…

    1 条评论
  • Recent Items - Custom Lightning component

    Recent Items - Custom Lightning component

    Here comes the another salesforce custom lightning component post. With this custom lightning components its easy to…

  • Salesforce Lightning and Fitbit Integration

    Salesforce Lightning and Fitbit Integration

    Fitbit is the one of the popular health activity tracking device which will monitor your steps, calories, heart rate…

    3 条评论
  • Trailhead & My Favourite Module

    Trailhead & My Favourite Module

    For anybody who is looking to learn salesforce or want to explore their salesforce knowledge then it is Trailhead that…

社区洞察

其他会员也浏览了