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: [
  	...
	MatFormFieldModule,
    MatInputModule,
    ...
  ]
})

Learn ReactJs, React Native from akashmittal.com