/dashboard.html
, you would see the HTML version of the content, and if you went to /dashboard.json
you would see the JSON version of the exact same content down to the footer./posts
with an accept
of application/json
, and when the client receives the response, swap out the current component for the component the response asks for, and pushState
on history.data-sg-visit
and it's equivalent this.props.visit
, Superglue also provides data-sg-remote
or this.props.remote
, which you can use to update parts of your page in async fashion without changing window.history
./dashboard?qry=haircut
, walk your props to the data.header.search
node, return it in the response, and immutably graft it in the exact same path on the redux store before finally letting React re-render.