Db12797
Db12797

Reputation: 31

Shortcut command for create-react-app?

I'm lazy and I despise typing 'create-react-app some-app' to use create react app. Is it possible to change the command to something like: 'cra some-app'

Upvotes: 0

Views: 328

Answers (1)

user5602665
user5602665

Reputation:

You can use bash aliases for this. https://www.digitalocean.com/community/tutorials/an-introduction-to-useful-bash-aliases-and-functions

Though I must say, how often are you doing this that it becomes a problem?

EDIT -

I forgot that you need the argument of the project name...

https://stackoverflow.com/a/7131683/5602665

Check out this answer here for how to create a function. That's your best bet

Upvotes: 1

Related Questions