For the most of it, if you know NPM, you’re already set!
That adds a ‘package.json’ file in the root of your project
npm init === yarn init
These are all the same:
npm link === yarn link
npm outdated === yarn outdated
npm publish === yarn publish
npm run === yarn run
npm cache clean === yarn cache clean
npm login === yarn login
npm logout === yarn logout
npm test === yarn test
‘Install’ is Yarn’s default behavior
npm install === yarn
The React Js library is saved in your package.json file:
npm install react --save === yarn add react
npm install -g @angular/cli === yarn global add @angular/cli