<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>griefworker</author_name>
  <author_url>https://blog.hatena.ne.jp/griefworker/</author_url>
  <blog_title>present</blog_title>
  <blog_url>https://tnakamura.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>React</anon>
  </categories>
  <description>SPA を作る上で実装したいのがルーティング。React を使ったアプリでのルーティング実装には react-router を使う。 今回からインストールは npm で。 npm install --save react-router react-router を使って Master-Detail の簡単なサンプルを書いてみた。 react-router が提供する Router や Route は React コンポーネントなので、 DOM を組み立てる感覚でルーティングを定義できて面白い。 var React = require(&quot;react&quot;); var ReactDOM = requi…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftnakamura.hatenablog.com%2Fentry%2F2015%2F12%2F09%2F125805&quot; title=&quot;react-router を使って React でルーティング - present&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-12-09 12:58:05</published>
  <title>react-router を使って React でルーティング</title>
  <type>rich</type>
  <url>https://tnakamura.hatenablog.com/entry/2015/12/09/125805</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
