Error Boundary In React (Which Error it Catches?)

Before understanding Error boundary, understand the term Compile time error or Run time errors.