APP
Modules
Hybrid Bridge
BUS
Mobile
Activation
Conversation
Signup
Propositions
const SomeSampleScreenView = ({elements}) => {
return (
<ul>
{elements.map((element) =>
<li key={element.id}>{element.name}</li>
}
</ul>
);
}
const someSampleScreen = React.createClass({
compoenentDidMount() {
ASDStore.addChangeListener(this.setStateFromStore);
},
setStateFromStore(){
this.setState({ elements: ASDStore.getElements() });
},
const {elements} = this.state;
render() {
return <SomeSampleScreenView elements={elements} />
}
});render() {
const elements, name = {this.props};
const renderPartA() {
return <h1>{name}</h1>;
}
return(<div>{renderPartA()}</div>);
}
// =================
const renderPartA(name) {
return <h1>{name}</h1>;
}
render() {
const elements, name = {this.props};
return(<div>{renderPartA(name)}</div>);
}
export const ACTION_TYPES = {
patientReceived: 'PATIENT_RECEIVED',
patientSearchResultsReceived: 'PATIENT_SEARCH_RESULTS_RECEIVED',
patientIssuesReceived: 'PATIENT_ISSUES_RECEIVED',
};
export function loadPatientDataAction(patientId, patientData) {
return {
actionType: ACTION_TYPES.patientReceived,
patientId,
patientData,
};
}
=====
import { ACTION_TYPES } from 'stores/abcStore';
Reimplement auth
Sockets