Skip to content

Instantly share code, notes, and snippets.

@joelvarty
Last active August 19, 2019 19:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelvarty/9be37d5e637737b4fdbb99bb1c27fb2c to your computer and use it in GitHub Desktop.
Save joelvarty/9be37d5e637737b4fdbb99bb1c27fb2c to your computer and use it in GitHub Desktop.
Agility Tutorial for creating a react page template
import React, { Component } from 'react';
import { ContentZone } from '../agility-react'
class TwoColumnTemplate extends Component {
render() {
return (
<div className="two-column-template">
<div className="main-column">
<ContentZone name='MainContentZone' {...this.props} />
</div>
<div className="right-column">
<ContentZone name='RightContentZone' {...this.props} />
</div>
</div>
);
}
}
export default TwoColumnTemplate;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment