I am building an API server and SPA separately. Since free dynos on Heroku are slow, to improve performance I put everything on one server.
I’ve recieved new props and needed to update a state. Legit place to do that, as I thoght, was
calc()function allows you to perform calculations when specifying CSS property value. It’s particulary interesting if you need to do some evaluations with different units
Things I found important, strange or just interesting about react and es6 (from official tutorial). Article is for people who start learning react
Parenthesize the body of function to return an object literal expression:
Rest params and default params
…I added variable to
…I restarted server
…I googled for an hour
…And I still was facing that
To change port when running
npm startfor your react app you need to add
When you need to have a web server there is this command available for you.
This will run webrick and serve current directory on port 9090 (you can change it)