Skip to content

yanjun-zhou6/react-plugin-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Validating a type of plugin pattern in developing React components.

During my daily work, I found that the size of a generic component gets bigger and bigger when adding more features into it. So a solution that I desire is that a feature can be added into a component as a plugin to be combined, rather than coupled into a component.

After a lot of efforts made, finally I found an open source repository called devextreme-reactive that introduces a plugin pattern of developing components. Thus I started to learn its source code in order to obtain the key idea, that inspires me to develop this pattern.

The mean of this repository is to check if the plugin pattern is able to be used in developing low-code tool as a solution.

The file that demonstrates using this plugin pattern is table.js.

If you check out that, you would find that tableHeader component is used in the same level with tableCell component, that breaks nested composition of components. So we are able to separate the implementation and declaration of a component, that's the key to assemble parts of a component in a declarative way.

Design

About

Validating plug-in development patterns on react component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published