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
- Host: GitHub
- URL: https://github.com/maxtermax/abfactory
- Owner: Maxtermax
- Created: 2021-01-04T02:06:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-31T18:53:42.000Z (about 5 years ago)
- Last Synced: 2025-06-03T13:13:04.279Z (about 1 year ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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}}
```