In React, data flows unidirectionally. This means that the State becomes the source of truth – especially working with controlled components and forms. Having said that, you will see your form HTML riddled with something like: And in your class, something like: This is to enforce this unidirectional pattern, making the state mutable and can […]
Blog
How to create simple Pagination using Lightning components and Apex
Let’s build something every web application needs in their results page: Pagination (aka Paging). This technique is necessary so we don’t bombard our users with all the items in our result page. Instead, we show them in “chunks” or “sets” of results. This is a very simplistic example – all we’re doing is a set […]
How to build an auto-suggest field using React and Express
One of my latest projects is a map application that has a search form in it. In this form is a field where you can type in a few letters and it will bring up the cities in the US, along with the state abbreviation concatenated with it. In other words – an autocomplete field […]
My First AWS Lambda Function and API Gateway
I was given a task to create a simple API that would fetch jobs from our new system Workday. This API would accept a few parameters, and spit out the relevant jobs from it. My thoughts are always – if I was to build something, might as well learn something new in the process. I’ve […]
Repeating Inputs in Salesforce Lightning Components
What we’re building: An input field that can be duplicated (repeated) as part of a form. This is particularly useful when you want to capture information that you want to separate in different lines, and you don’t really want to use a textarea. This way, we’re forcing our user’s to enter a value per input. […]
Let’s build a Map Application using Leaflet and Lightning Components
Salesforce’s Lightning component system is quite a robust framework where you can build full pledged single-page applications in a heartbeat. I especially like it’s built-in SLDS (styles), so all you have to really think about is the logic of your application. In this walk trough, we’re building a real life map application with Lightning. We’re […]