An open API service indexing awesome lists of open source software.

https://github.com/maxtermax/abfactory

Abstract factory example, featuring ui components across technologies such as: react js and vue
https://github.com/maxtermax/abfactory

Last synced: 11 months ago
JSON representation

Abstract factory example, featuring ui components across technologies such as: react js and vue

Awesome Lists containing this project

README

          

# Abstract Factory
Abstract factory implementation, featuring ui components across technologies such as: react js and vue
Generate ui components using as target: react or vue.

## Requeriments
- nodejs >= 14

## Usage
Generate React components family

`npm run generate-react-ui`

output:
React component base on jsx template or a custom template:

```
const Button = (props = {}) => {
const { text = '', disabled = false } = props;
return {text}
};
```

```
const Checkbox = (props = {}) => {
return
};
```

Generate Vue components family

`npm run generate-vue-ui`

output:
Vue component base on a default template or a custom template:

```
{{text}}
```