1.0.12 • Published 1 year ago

gfb v1.0.12

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

website:https://www.gfb-js.com

Why did create it(Please read this paragraph)

I must explain why I created such a nondescript data-driven library. In the current front-end ecosystem, the old data-driven UI frameworks include React, VUE, and Angular. They are ecologically sound and powerful, and can't be replaced by a new data-driven library. The emerging data-driven framework has a rising star like Svete. Normally, there is no need to develop a new data-driven UI framework, let alone a defective UI library.

However, my company has encountered such a problem. Due to business needs and technical specifications of external channel platforms, our company needs to publish a project to different technical architectures. Some are native JS environments, or React, or VUE, and some are incompatible versions of technical architectures. This leads me to write different code for a project using different technical architectures, but these codes do the same thing. This is not the most troubling thing for me. What's more troubling is that when a requirement iteration changes, we usually need to change all the codes of different architectures. Sometimes only a small copy change needs to modify multiple versions of the code, and then package and upload them separately.

In this case, I developed a set of data-driven UI libraries that run in different technical frameworks and can not affect the host environment, and it needs to be able to communicate with the host environment conveniently. So GFB-js was born, and it can embed itself into React, VUE or native environment, and communicate with the host environment through Service. In this way, I can make a development through GFB and use it everywhere. And I can use Service to build another set of communication system without affecting the host environment without considering the host's communication mechanism.

Special note:

GFB is not a data-driven framework. It is a library that encapsulates data-driven functions. However, it implements functions similar to the framework. You can introduce it into any project and use it in a native JS way.

It is not invasive and will not affect the host, but it should be noted that it is based on the class feature of ES6. If you need to be compatible with low version browsers, it is not suitable for you.

You can use it to create a single page application, But be careful not to update the root component frequently. This is because during the data update process, GFB will re render itself and all sub components under it that should be mounted. When the project volume is too large, frequent updating of the root component will affect the operation efficiency.But the good news is that each update of a component will only render DOM once, no matter how many sub components it has attached.

document

About how documents are used

Step 1: clone the code base locally

Step 2: Run the index.html file in the project in the browser environment to view the document

Why use it

If you don't want to use a huge framework and want to experience the convenience of data-driven, it will be a good choice for you.

Its size is only a few K, and it realizes a simple and practical data-driven function.

It can be guaranteed at any time that the update logic will be executed only when you explicitly need to update it

It has only a few easy-to-use and easy to understand APIs, without complex API design, so developers do not need to spend effort to understand its underlying can be easily used.

It uses native JavaScript as the development language, and there is no virtual DOM, which allows developers to quickly become familiar with it.

Because all its features only depend on the special implementation of its code itself, it can be easily embedded in any known front-end UI framework, provided that you are familiar with that framework.

For example, you can use it to develop your own UI components, and then embed them into react, Vue, angular and other frameworks at the same time.

At present, it is still young and needs to grow. Hope to get more help.

Want to help it

Email: gfb_js@163.com

If you find some defects in it, you can email it and it will reply you in the first time.

1.0.9

1 year ago

1.0.8

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.12

1 year ago

1.0.7

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago