React

  • I was playing around with the raw React APIs, specifically React.createElement(), when I was going through the EpicReact workshop on React Fundamentals and I stumbled upon an interesting finding. React.createElement(component, props, …children) accepts an object of props as its second argument and subsequent arguments passed will be its children. However, since children is also a…

  • React 16 introduces a new concept called Error Boundaries which aims to provide proper error handling in the event of an error in a part of the App’s UI. You might have seen something like this: Ideally, when an error occurs during rendering, we would want to catch it and display a fallback UI instead…