Archives : November-2015

I’m currently learning react-router, and then trying to implement it in a sample app. Here is my code: index.html <!DOCTYPE html> <html> <head> <title>Sample APP</title> <link rel=”stylesheet” href=”dist/css/style.css”> </head> <body> <div id=”main”></div> </body> <script src=”dist/js/main.js”></script> </html> /src/app.jsx var React = require(‘react’); var ReactDOM = require(‘react-dom’); var Routes = require(‘./routes’); ReactDOM.render(Routes, document.getElementById(‘main’)); /src/routes.jsx var React = ..

Read more