1.0.8 • Published 8 years ago

radmvc v1.0.8

Weekly downloads
9
License
MIT
Repository
github
Last release
8 years ago

RadMVC

RadMVC is the MC for React. It's an MVC framework which uses React for it's view.

Essentially, RadMVC provides you with models and controllers to give you a complete MVC experience when using React.

The goal of this framework is to provide a simple and concise way to separate your presentation, business and data layers with the smallest learning curve possible.

Please visit the github page to view documentation & examples.

Hello World Example

homecontroller.js
import Rad from 'radmvc';
import React from 'react';

class HomeController extends Rad.Controller{
    
    constructor(){
        super();
    }
    
    index(){
        return <div>Hello World <button onClick={Rad.HomeController.goodbye}>Bye!</button></div>;
    }
    
    goodbye(){
        return <div>Good Bye!</div>;
    }
    
}
//register HomeController with RadMVC
Rad.Controllers.HomeController = HomeController;
index.html
<html>
    <head>
        <title>Hello World</title>
    </head>
    <body>
        <div controller="HomeController"></div>
    </body>
</html>
1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.2

8 years ago

1.0.0

8 years ago