problem about reactjs-Collection of common programming errors
Andrew
javascript reactjs
I’m trying to create a simple grid-based editor for a data structure and I’m having a couple conceptual problems with React.js. Their documentation is not very helpful on this, so I’m hoping someone here can help. First, what is the correct way to transfer state from an outer component to an inner component? Is it possible to have state changes in the inner component “bubble up” to the outer component(s)? Second, can two separate components share data, so that a mutation in one is visible in the
NVI
template-engine reactjs
I’m porting the following code from AngularJS to React:<div style=”translate: translate({x}px, {y}px) scale({scale}) rotate({angle}deg)”}></div>I tried:<div style=”translate: translate({this.state.x}px, {this.state.y}px) scale({this.state.scale}) rotate({this.state.angle}deg)”}></div>It failed with Parse Error: Line X: Unexpected token }.The best I came up with is:<div style={{transform: “translate(” + this.state.x + “px, ” + this.state.y + “px) \scale(” + this.state.s
sam
reactjs
i am just starting with Reactjs and was writing a simple component to display li tag and came across this error Unexpected token ‘<‘I have put the example at jsbin below http://jsbin.com/UWOquRA/1/edit?html,js,console,outputPlease let me know what i am doing wrong.Thanks in advance
DjangoRocks
facebook reactjs
I am tryin out Facebook’s Reactjs library and found it awesome. I have ran through the exampe/tutorial and got it working.Now i am at : http://facebook.github.io/react/docs/interactivity-and-dynamic-uis.html And I am trying out the code:/** @jsx React.DOM */var LikeButton = React.createClass({getInitialState: function() {return {liked: false};},handleClick: function(event) {this.setState({liked: !this.state.liked});},render: function() {var text = this.state.liked ? ‘like’ : ‘unlike’;return (<
john mangual
javascript facebook markdown frontend reactjs
Going along Facebook’s read.js tutorial, I get this error:Uncaught TypeError: Property ‘CommentList’ of object [object Object] is not a functionIn fact react.js’s own examples page has:Uncaught TypeError: object is not a functionCan anyone explain the correct usage?My progress in TutorialImport the following two javascripts:http://fb.me/react-0.4.1.js http://fb.me/JSXTransformer-0.4.1.jsThe HTML is one line:<div id=”content”></div>And the javascript or rather <script type=”text/js
ryanwebjackson
javascript javascript-library reactjs
I recently learned about Facebook/Instagram’s app framework for JavaScript called “React” and wanted to look more into it. However, I found myself getting conflicting search results, as there is another library of a similar name. So, my question is this: Are there similarities between the two, or could someone do a better job at naming?React http://facebook.github.io/react/index.htmlreact.js http://www.reactjs.com/
Web site is in building