react-create
react-create copied to clipboard
Class name incorrect when passing path in component name
When trying to create a component by specifying a path as below
react-create component src/Address --entry
The file is created properly in src directory but the class name in the template is prefixed with the path. The class name should be extracted from the argument[1](which can be a component name with path before it) before adding it to the template.
Please find the screen shot.
