1.0.2 • Published 3 years ago

react-fast-mvvm v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

react-fast-mvvm

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-fast-mvvm

Usage

import React from 'react';
import { World, FloorViewModel, PersonViewModel, ElevatorInside, CarHardwarePerFloorViewModel } from './World';
import { SetupUIBindingForReactFunctionalComponent } from 'react-fast-mvvm';
import { ElevatorCarHardware, ElevatorHardware } from './ElevatorHardware';
import { CommandState } from './Car';

export function Example(props: { viewModel: ExampleViewModel }) {
  let viewModel = props.viewModel;
  SetupUIBindingForReactFunctionalComponent(props.viewModel);

  render() {
    return <div>{viewModel.title}</div>;
  }
}
export class Example {
  public title: string;

  constructor(){
    this.title = 'Example title';
  }
}

License

MIT ©

1.0.2

3 years ago

1.0.1

3 years ago