All Questions
Tagged with reactjs javascript
207,541
questions
27
votes
3
answers
10k
views
How to make React and Meteor fit together
I don't know if it's more a React or Meteor concern, maybe both, but I am currently building a web app with these two frameworks and I am facing a programmer issue. I am not a Javascript developer but ...
54
votes
4
answers
21k
views
React: Keyboard Event Handlers All 'Null'
I'm unable to get any of the React SyntheticKeyboardEvent handlers to register anything except null for the event properties.
I've isolated the component in a fiddle and am getting the same result as ...
0
votes
1
answer
3k
views
How to render ReactJS component from outside of JS class it's defined in and/or with dynamic id element name?
If I defined a ReactJS class in say dialog.js:
var divStyle = {
padding: '15px',
paddingBottom: '12px'
};
var Dialog = React.createClass({
render: function() {
return (
<div style={...
0
votes
1
answer
422
views
Is there any required div wrapper inside a React component
I create a menu using React JS:
var Dropdown = React.createClass({
render: function() {
return (
<Title />
<OptionsDropdown />
);
}
});
where Title and ...
88
votes
4
answers
73k
views
Is it possible to use React without rendering HTML?
I was wondering if it's possible to use React for doing logic and sending data back to a javascript function, without rendering any html. The component I'm thinking of is something that you pass some ...
5
votes
1
answer
367
views
Managing subcomponents that are not in DOM subtree
Consider a component which needs to manage subcomponents that are not children in its own DOM tree, but must be added to the top-level document.
A typical example would be an autocompletion field ...
15
votes
1
answer
17k
views
How to show/hide ReactJS components
Trying to learn ReactJS.. but what confuses me is the rendering of the component. Every example I've seen defines a React component class and at the end has something like:
React.renderComponent(
&...
18
votes
3
answers
47k
views
What's the proper way of binding touchstart on React JS?
I am learning React JS and as of now I cannot find any example on the source code, tests or on the official docs. On the docs the touchStart event is said to be supported but handleTouchStart does not ...
15
votes
2
answers
5k
views
structure of a Backbone and React single page app
I've been using backbone.js for most of my frontend JavaScript projects so far, but after hearing about Facebook's react.js I got interested and started poking around.
I'm wondering whether or not I'...
5
votes
2
answers
866
views
How to easily pass data from child to root in reactjs?
I have a comment box like this:
I have bound all actions to CommentBox component, there is a decComment action to handle Delete event in each comment.
Everytime when i click the delete button in ...
-2
votes
1
answer
302
views
Should I filter my data before calling setProps on Reactjs?
Is it faster if I filter my data before calling setProps (or setState) for Reactjs?
var component = React.renderComponent(
<MainApp />,
document.getElementById("container")
);
var data = {
...
4
votes
1
answer
8k
views
Use setState or setProps is more efficient for Reactjs?
I'm using ReactJS (by facebook) and I have the option of calling setState or setProps, but don't know which is more efficient performance-wise.
(Don't take my code on face value. This is just a ...
222
votes
13
answers
102k
views
What is Virtual DOM?
Recently, I looked at Facebook's React framework. It uses a concept called "the Virtual DOM," which I didn't really understand.
What is the Virtual DOM? What are the advantages?
28
votes
4
answers
10k
views
Is there any proper way to integrate d3.js graphics into Facebook React application?
Yes, I know there is react-art, but it seems to be broken.
The problem is that d3.js is all about mutating the browser DOM, and using it directly, say inside componentDidMount method, will not work ...
1
vote
0
answers
1k
views
React.js: Sortable component
I used a SmartSortable snippet by Pete Hunt from React.js Google Group that intergates jQuery UI sortable with React.
Unfortunately, after using it, editing input fields makes the text cursor to just ...