How to get parameter value from query string?

How can I define a route in my routes.jsx file to capture the __firebase_request_key parameter value from a URL generated by Twitter’s single sign on process after the redirect from their servers? http://localhost:8000/#/signin?_k=v9ifuf&__firebase_request_key=blablabla I tried with the following routes configuration, but the :redirectParam is not catching the mentioned param: <Router> <Route path=”https://stackoverflow.com/” component={Main}> <Route path=”signin” … Read more

What is the difference between using constructor vs getInitialState in React / React Native?

I’ve seen both used interchangeably. What are the main use cases for both? Are there advantages / disadvantages? Is one a better practice? 9 s 9 The two approaches are not interchangeable. You should initialize state in the constructor when using ES6 classes, and define the getInitialState method when using React.createClass. See the official React … Read more

Can you force a React component to rerender without calling setState?

I have an external (to the component), observable object that I want to listen for changes on. When the object is updated it emits change events, and then I want to rerender the component when any change is detected. With a top-level React.render this has been possible, but within a component it doesn’t work (which … Read more