Check out example codes for "swiftui collection view register nib". It will help you in understanding the concepts better.
Code Example 1
collectionView.register(UICollectionViewCell.self, forCellWithReuseIdentifier: "Cell")
Learn ReactJs, React Native from akashmittal.com