React expose component function

Based on the example on this link, I have been trying to simplify the code to understand exposed methods better, so I got the following, which doesn't work, the error is "Uncaught TypeError...
more »

2017-01-05 00:01 (2) Answers

React searching for a user and rendering it out

FIXED: Solution: use and add key value to tag I have some constant data that I am just trying to render to screen. I can render all of the data at once, but what I really want to do is search for a user and only render out their pr...
more »

2017-01-04 22:01 (2) Answers

User authentication with ASP MVC and React

In C# and with claims it is easy to set up a login system. I am wondering how to correctly do it with React and C# as a back-end? Do I have to send login and password from React's form with an xmlhttp post request and check if it exist? Should I the...
more »

2017-01-02 22:01 (1) Answers

POST with Body Not Passing Cookies

I'm using the axios-cookiejar-support library. I have a POST that contains a body, and for some reason, the Cookies aren't getting injected into the request. What did I do wrong here: return axios .post( urlJoin( config.port...
more »

2016-12-14 13:12 (1) Answers

SEO-friendly React-Redux app

React apps render components on the fly, dynamically, so it makes it impossible for search engines to index pages, and complicates social sharing. What is the best practice to handle such issues, and make a React-Redux app SEO-friendly? ...
more »

2016-12-13 07:12 (1) Answers

Web Crawler problems in Python

I've been working on creating a single-threaded Web Crawler in Python that will group the assets of each page and output a JSON array of the form: [ { url: '', assets: [ '', 'http://ur...
more »

2016-12-12 21:12 (0) Answers

How do make immutable props in react?

I am making a little app in react.js and I want to care about the performance, so I have a simple child component named "Spinner" this componener never have to change, this is my component: import React, {PureComponent} from 'react'; export default...
more »

2016-12-10 00:12 (3) Answers

Material-UI inline styling SEO impact

I'm using Material UI for React and they're using inline style since the 0.8.0 version. How much does this solution has an impact on the SEO ? Most SEO checkers are reporting issues for inline styling on websites using them but Material UI is too g...
more »

2016-12-09 11:12 (1) Answers

Checking prop types in React

I was reading the React.Component section in the official React documentation. Everything made sense except for the part regarding propTypes. The docs state the following: In production mode, propTypes checks are skipped for efficiency. Say I h...
more »

2016-12-07 21:12 (2) Answers

How to parse an image url in React?

I am new here, so apologies if I am asking trivial question, but could not find answer anywhere. I need to parse my link to display image. Image is in format e.g. p8983.png So I build this link which is correct, not sure how to render/parse it with...
more »

2016-11-27 12:11 (1) Answers

Prompt file download

I have a link on my page on click of which I am trying to generate a PDF document and then show the Open - Save prompt on the browser. My HTML (reactjs component) has the below code where onclick calls the _getMyDocument function which then calls a ...
more »

2016-11-17 19:11 (4) Answers