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
npm install react-state-rxjs-cli -gIn terminal type rsx and answer couple questions:
Name of the component - e.g:
todosChoose directory
Enter state path like you do in
@InjectStoredecorator - e.g:['todos', '${stateIndex}']or 'todos'Chose what new component should extend
ReactComponentWithStateActionsorReact.Component
Last updated
Was this helpful?