Node / React cheat sheet

Node / React cheat sheet

Create a react application c:\ npx create-react-app my-app If the creation of react app is generating error like ‘Unexpected end of JSON input while parsing near …’ c:\ npm cache clean –force Correct way of updating the state variable this.setState((state, props) => ({ counter: state.counter + props.increment })); this.setState(function(state, props)...Read more
Initial references for creating a NodeJS and React application

Initial references for creating a NodeJS and React application

Below are few code snippets and links that are helpful when you start developing a NodeJS application. Ref: https://gist.github.com/gaearon/683e676101005de0add59e8bb345340c If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation: We define variables with let...Read more
*FIXED* Setting you Railo / Lucee server to use TLS 1.2 by setting to use Java 1.8 instead of Java 1.7.

*FIXED* Setting you Railo / Lucee server to use TLS 1.2 by setting to use Java 1.8 instead of Java 1.7.

TLS 1.0 support is being dropped by more and more platforms. If you are using your Railo / Lucee server to communicate with the service that have dropped the support using TLS 1.0, the request will not be honored. Here are the steps to have your Railo/Lucee server to use...Read more