3 ms·
I'm having trouble understanding your comment. Neither the homepage, Getting Started, the tutorial, nor the downloads page mentions CommonJS. If you do choose
by spicyj 10y ago
I'm having trouble understanding your comment.
Neither the homepage, Getting Started, the tutorial, nor the downloads page mentions CommonJS. If you do choose to use browserify or webpack, you'll want Node and npm, but Node's homepage doesn't suggest using Homebrew so I'm not sure why that would be necessary. (Besides, in my experience, most programmers using a Mac have Homebrew already.)
> When you actually get into the tutorial, it starts with "Running a server". Running a server?
We included this as a sample because most people write clients against an app server so we thought it instructive to show how to fetch and post data via AJAX. Nothing about it is inherent to React and people make React apps without any server component all the time. It sounds like this was misleading to you, which is good feedback for us. I was thinking about revamping the tutorial soon anyway and my new example wasn't going to have any server component.
- jimmytucson 10y agoMy comment was based on notes I took from a little over a month ago, when the Getting Started guide said "We recommend using React with a CommonJS module system like browserify or webpack." https://web.archive.org/web/20160411175140/https://facebook.github.io/react/docs/getting-started.html https://web.archive.org/web/20160411175140/https://facebook....
- spicyj 10y agoAh, indeed. Looks like we tried to simplify it recently: https://github.com/facebook/react/pull/6148 https://github.com/facebook/react/pull/6148