Component manager. Create component boilerplate for React. Note that it only creates React component except style files and unit test.
- Source:
Methods
(static) add(feature, name, args)
- Source:
Add a component.
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The component name. |
args |
object | Other arguments. |
(static) remove(source, target)
- Source:
Move/rename a component.
Parameters:
Name | Type | Description |
---|---|---|
source |
ElementArg | Which component to move/rename. |
target |
ElementArg | The target of the old component. |
(static) remove(feature, name, args)
- Source:
Remove a component.
Parameters:
Name | Type | Description |
---|---|---|
feature |
string | The feature name. |
name |
string | The component name. |
args |
object | Other arguments. |