the cli to create react components
support css
,scss
,less
- the cli to create react components
- support create multiple components
- support
css
,Scss
,Less
- support stateless function(or you can say pure component)
npm i -g react-component-maker
mkreact App
//you will create React component named App
mkreact Header,Body,Footer
//you will create React compoennts named Header,Body,Footer
mkreact -s Body
//create React components named Body with Scss
mkreact -l Body
//create React components named Body with Less
mkreact -p Body
//you will create pure component for stateless function
- [name].jsx
- [name].css
- index.jsx
import React from 'react';
import styles from './[name].css'
class [name] extends React.Component {
constructor(props) {
super(props);
this.displayName = [name];
}
render() {
return (
<div className={styles.container}>
[name]
</div>
)
}
}
export default [name];
.container {
}
import [name] from './hh'
export default [name]