@staticinstance
I like making things with JavaScript
Nothing here yet.
Nothing here yet.
No blogs yet.
No. React is a view layer. HTML, CSS, and JavaScript all have the same concern, to render a view. They are different technologies sharing the same concern in this case. I like that the view and rendering logic are in the same file. It's really all just JavaScript anyway, JSX is not HTML and get's transpiled by React into plain old JavaScript functions. Here is another explanation of what I mean https://github.com/jsforum/jsforum/issues/1#issuecomment-147772986
React is a view layer. HTML, CSS, and JavaScript all have the same concern, to render a view. They are different technologies sharing the same concern. I like that the view and rendering logic are in the same file. If you make sure your React app is modular it can be very clean and many of your components can be re-used.
Here is a starter kit for testing with Jest https://github.com/staticinstance/react-jest-starter-kit also http://facebook.github.io/jest/ https://facebook.github.io/react/docs/test-utils.html https://discuss.reactjs.org/t/whats-the-prefered-way-to-test-react-js-components/26/21 https://egghead.io/series/react-testing-cookbook
If anyone has any suggestions let me know or make a pull request :) Thanks!