Skip to content

Elevate Your Code

  • Home
  • About
  • Contact

Tag: React

Dependency Injection in React

Posted 4 years ago by Rani Zilpelwar

Dependency injection is a form of inversion of control. This means that a component’s dependencies are not part of a component’s internals, they are defined at the public-facing seam, or interface, of the component.

Dependency injection allows for a decoupled design and makes testing easier. It fosters clear boundaries between components and allows for the simple substitution of one concrete implementation of a dependency with another concrete implementation. It also allows for substitution of a dependency with a mock, or fake, during testing.

This blog details some techniques for using dependency injection in React.

Read more >

Blog Dependency Injection, Design, React

Validating a Form using Yup

Posted 4 years ago by Rani Zilpelwar

Yup is a schema validation library. One would use it to add property validations that execute prior to form submission. It is also pretty easy to use, it’s just difficult to find concrete examples to model off of.

Because of this difficulty in finding good examples that showcase its syntax, I’ve compiled some common examples in Javascript.

Read more >

Blog Forms, React, Yup

Tags

Abstraction Career Dependency Injection Design Forms Javascript Promises React Tests Unit testing Yup
  • linkedin
  • github
Built with BoldGridPowered By DreamHostSpecial Thanks