This repository was archived by the owner on Oct 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathindex.html
More file actions
195 lines (177 loc) · 7.64 KB
/
index.html
File metadata and controls
195 lines (177 loc) · 7.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Use Ruby to build Reactive User Interfaces | React</title>
<meta name="viewport" content="width=device-width">
<meta property="og:title" content="Use Ruby to build Reactive User Interfaces | React">
<meta property="og:type" content="website">
<meta property="og:url" content="https://facebook.github.io/react/">
<meta property="og:image" content="https://facebook.github.io/react/img/logo_og.png">
<meta property="og:description" content="Use Ruby to build Reactive User Interfaces">
<meta property="fb:app_id" content="623268441017527">
<link rel="shortcut icon" href="favicon.ico?">
<link rel="alternate" type="application/rss+xml" title="React" href="https://facebook.github.io//feed.xml">
<link rel="stylesheet" href="/react/css/syntax.css">
<link rel="stylesheet" href="/react/css/codemirror.css">
<link rel="stylesheet" href="/react/css/react.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.9.0/theme/rubyblue.css">
<!--[if lte IE 8]>
<script src="/react/js/html5shiv.min.js"></script>
<script src="/react/js/es5-shim.min.js"></script>
<script src="/react/js/es5-sham.min.js"></script>
<![endif]-->
<script src="/react/js/codemirror.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.9.0/mode/ruby/ruby.min.js"></script>
<script src="/react/js/javascript.js"></script>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="/reactive-playground.js"></script>
<!--<script src="/react/js/react.js"></script>
<script src="/react/js/react-dom.js"></script> -->
<script src="/react/js/babel-browser.min.js"></script>
<script src="/react/js/live_editor.js"></script>
<script src="/react/js/playground.js"></script>
</head>
<body>
<div class="container">
<div class="nav-main">
<div class="wrap">
<a class="nav-home" href="/">
<img class="nav-logo" src="/react/img/logo_svg.png" width="36" height="36">
Reactrb
</a>
<ul class="nav-site nav-site-internal">
<li><a href="/docs/getting-started.html">Docs</a></li>
<li><a href="/support.html">Support</a></li>
<li><a href="/install.html">Install</a></li>
<li><a href="/blog/">Blog</a></li>
</ul>
<ul class="nav-site nav-site-external">
<li><a href="https://github.com/reactrb/reactrb">GitHub</a>
</ul>
</div>
</div>
<div class="hero">
<div class="wrap">
<div class="text"><strong>Reactrb</strong></div>
<div class="minitext">
<p>Use Ruby to build Reactive User Interfaces</p>
<!--<p>We are reusing much of the original react.js site and documentation, and we appreciate the great work by the React.js
team.
</p> -->
</div>
<div class="buttons-unit">
<a href="/docs/getting-started.html" class="button">Get Started</a>
<a href="/install.html" class="button">Get Reactrb</a>
</div>
</div>
</div>
<section class="content wrap">
<p><section class="light home-section">
<div class="marketing-row">
<div class="marketing-col">
<h3>Pure Ruby</h3>
<p>
Reactrb lets you build beautiful interactive user interfaces using the same Ruby language running your server side code. Reactrb replaces JS code, JSX, HTML,
templating languages, and complex frameworks with one simple system.
</p>
</div>
<div class="marketing-col">
<h3>React + Ruby</h3>
<p>
The power and simplicity of React with a great easy to use Ruby DSL. Reactrb frees you up to do what you do best - building great apps.
</p>
</div>
<div class="marketing-col">
<h3>Simplicity</h3>
<p>
One language. One simple model. Under the hood Reactrb takes care of all the details for you. The same ruby code runs on the server to deliver pages
fast, and then keeps running on the client to handle your user interactions.<br>
</p>
</div>
</div>
</section>
<hr class="home-divider" />
<section class="home-section">
<div id="examples">
<div class="example">
<h3>A Simple Component</h3>
<p>
React components can be defined by subclassing <code>React::Component::Base</code>. The <code>render</code> callback defines the components HTML.
</p>
<div id="helloExample"></div>
</div>
<div class="example">
<h3>A Stateful Component</h3>
<p>
In addition to taking input data (such as the <code>visitor</code> param), a
component can have state variables, which are like <i>reactive</i> instance variables.
When a component's state changes, the markup will be
updated by automatically by re-invoking the <code>render</code> callback.
</p>
<div id="timerExample"></div>
</div>
<div class="example">
<h3>An Application</h3>
<p>
Using params and state, we can put together a small Todo application.
This example uses two state variables to track the current list of items and
the text that the user has entered.
</p>
<div id="todoExample"></div>
</div>
<div class="example">
<h3>A Component Using External Plugins</h3>
<p>
React is flexible and provides hooks that allow you to interface with
other libraries and frameworks. This example uses <strong>marked</strong>, an external
Markdown library, to convert the textarea's value in real-time.
</p>
<div id="markdownExample"></div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js"></script>
<script src="/react/js/examples/hello.js"></script>
<script src="/react/js/examples/timer.js"></script>
<script src="/react/js/examples/todo.js"></script>
<script src="/react/js/examples/markdown.js"></script>
</section>
<hr class="home-divider" />
<section class="home-bottom-section">
<div class="buttons-unit">
<a href="docs/getting-started.html" class="button">Get Started</a>
</div>
</section></p>
</section>
<footer class="wrap">
<div class="left">
Original site is a Facebook & Instagram collaboration.<br>
<a href="/acknowledgements.html">Acknowledgements</a>
</div>
<div class="right">
Original site © 2013–2016 Facebook Inc.<br>
Documentation modified under <a href="https://creativecommons.org/licenses/by/4.0/">CC v. 4.0</a>.
</div>
</footer>
</div>
<div id="fb-root"></div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41298772-1', 'facebook.github.io');
ga('send', 'pageview');
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/all.js#xfbml=1&appId=623268441017527";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
</body>
</html>