Check out example codes for "'mat-form-field' is not a known element:". It will help you in understanding the concepts better.

Code Example 1

@NgModule({
  imports: [
    MatButtonModule,
    MatFormFieldModule,
    MatInputModule,
    MatRippleModule,
 ]
 ....

Learn ReactJs, React Native from akashmittal.com