Skip to content

Instantly share code, notes, and snippets.

@RyanAtViceSoftware
Last active December 19, 2015 16:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanAtViceSoftware/49c7b0271a71001ef5ff to your computer and use it in GitHub Desktop.
Save RyanAtViceSoftware/49c7b0271a71001ef5ff to your computer and use it in GitHub Desktop.
Hello React - controlled components - read only. http://jsfiddle.net/gh/gist/library/pure/49c7b0271a71001ef5ff
<script src="https://fb.me/react-with-addons-0.14.0.js"></script>
<script src="https://fb.me/react-dom-0.14.0.js"></script>
<div id="view"/>
var TextBox = React.createClass({
render: function() {
return <input type='text' value='Read only'/>;
}
});
ReactDOM.render(
<TextBox/>,
document.getElementById('view'));
name: ReactJs example by Ryan Vice - www.ViceSoftware.com
description: Hello React - controlled components - read only.
authors:
- Ryan Vice
resources:
normalize_css: no
wrap: h
panel_js: 3
panel_css: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment