npm install -g generate-component-react
generate component <component-name> -f
function App() {
return(
<>
<Abc/>
</>
);
}
export default App;
function Abc()
{
return (<b> Abc Text</b>)
}
/*<Abc/> will be <b>Abc text </b>*/
//Box is the component name
npx generate-react-cli component Box