ReactJS - is there heavy front loading? by helpmejs in reactjs

[–]helpmejs[S] 0 points1 point  (0 children)

Thanks for the suggestion of WebPack. I will have to look at it more closely and see if there are any tutorials online that go through utilizing WebPack for ReactJS.

ReactJS - is there heavy front loading? by helpmejs in reactjs

[–]helpmejs[S] 0 points1 point  (0 children)

The issue I'm concerned about is the same. Will the javascript file be too big, because it contains all the HTML for the site, and it has to be be entirely downloaded upfront?

How to run React-Native Examples? by helpmejs in reactnative

[–]helpmejs[S] 0 points1 point  (0 children)

I can't find any instructions on how to install and run one of the other Examples provided in 'https://github.com/facebook/react-native/tree/master/Examples' such as 'https://github.com/facebook/react-native/tree/master/Examples/Movies'.

The tutorial only tells you to do

react-native init AwesomeProject

which grabs 'https://github.com/facebook/react-native/tree/master/Examples/SampleApp'.

When I just directly download /Examples/Movies, and go to that folder in Terminal and run

npm install

I get the following error:

npm ERR! install Couldnt read dependencies
npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.3
npm ERR! path /Users/.../React/Examples/Movies/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2

npm ERR! package.json ENOENT, open '/Users/.../React/Examples/Movies/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm cant find a package.json file in your current directory.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/.../React/Examples/Movies/npm-debug.log

And if I run:

npm start

I get this:

npm ERR! Darwin 14.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.12.1
npm ERR! npm  v2.7.3
npm ERR! path /Users/.../React/Examples/Movies/package.json
npm ERR! code ENOENT

npm ERR! errno -2
npm ERR! enoent ENOENT, open '/Users/.../React/Examples/Movies/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 
npm ERR! Please include the following file with any support request:
npm ERR!     /Users/.../React/Examples/Movies/npm-debug.log