Chapter 5: Code, Test, and Repeat
In the previous chapters, we looked at all the basics of a PCF project and prepared ourselves to build a code component. In this chapter, you will learn many things, from the process itself to initializing a PCF project, to editing the manifest file, and then writing the code to create the components. We will also see how to test and fix issues encountered during testing. Once the code component is ready, we will then learn how to add stylings and preview images. Later, we will look at how to create code components for a view or a sub-grid. This chapter will provide hands-on experience in building two complete code components, one for the field type, which will count the number of characters, and another for the dataset type, which will show the list as cards.
In this chapter, we are going to cover the following main topics:
- Building the code component with a field type template
- Testing the code component that we built
- Adding stylings...