CLI
react-state-rxjs
has optional package react-state-rxjs-cli
which makes developers lives easier by generating new files or integrating state management to existing ones.
Install it from npm
In terminal type rsx
and answer couple questions:
Name of the component - e.g:
todos
Choose directory
Enter state path like you do in
@InjectStore
decorator - e.g:['todos', '${stateIndex}']
or 'todos'
Chose what new component should extend
ReactComponentWithStateActions
orReact.Component
Last updated
Was this helpful?