Reusing code with your own libraries
There are many good reasons to create your own library. Sharing code between different projects for different platforms is definitely one of them. But with your own library, you can also achieve the following things:
- Ensure consistent design in all your applications: When you are working in a company that provides multiple applications, it’s a good idea to create a UI library that provides UI components for all these applications. This ensures a consistent design system.
- Simplify backend connection: You can extract your services to a library, which can then be used in all your projects. This ensures a unified backend connection layer.
- Define responsibilities: Every library can be maintained by its own maintainer or team. With this library approach, you can define clear responsibilities.
- Provide additional functionality: You can also write your own library to provide native functionality that isn’t available in the...