Coder Social home page Coder Social logo

huan086 / react.net Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactjs/react.net

0.0 1.0 1.0 2.79 MB

.NET library for JSX compilation and server-side rendering of React components

Home Page: http://reactjs.net/

License: Other

Shell 0.14% CSS 2.57% HTML 0.82% Ruby 0.21% Nginx 0.15% C# 42.51% JavaScript 53.25% PowerShell 0.20% ASP 0.03% Pascal 0.11%

react.net's Introduction

ReactJS.NET is a library that makes it easier to use Facebook's React and JSX from C#.

Build status  Code coverage  NuGet downloads  NuGet version

Features

Quick Start

Install the package

Install-Package React.Web.Mvc4

Create JSX files

// /Scripts/HelloWorld.jsx
var HelloWorld = React.createClass({
    render: function () {
        return (
            <div>Hello {this.props.name}</div>
        );
    }
});

Reference the JSX files from your HTML

<script src="@Url.Content("~/Scripts/HelloWorld.jsx")"></script>

Now you can use the HelloWorld component.

For information on more advanced topics (including precompilation and server-side rendering), check out the documentation

Building Manually and Contributing

When building your own copy of ReactJS.NET (for example, if implementing a new feature or fixing a bug), your first build always needs to be done using the build script (dev-build.bat) as this generates a few files required by the build (such as SharedAssemblyVersionInfo.cs). Once this build is completed, you can open React.sln in Visual Studio and compile directly from Visual Studio. Please refer to the documentation page on contributing for more information on contributing to ReactJS.NET.

react.net's People

Contributors

daniel15 avatar rickbeerendonk avatar mandrek44 avatar alxandr avatar bartadv avatar rosdi avatar andersea avatar arbrown avatar dotnetchris avatar cdeutsch avatar zpao avatar jridgecsi avatar jlchmura avatar martinhaluza avatar

Watchers

Jeow Li Huan avatar

Forkers

muhrizal

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.