Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- return (
- <h1 cmsContent = {{
- id:'h1',
- type: 'Text'}}>
- </h1>
- <div cmsContent = {{
- id:'blocks',
- type: 'ManyReferences',
- referenceTime: 2}}>
- {this.state.cmsContent.blocks.map( block => {
- return (
- <div>
- <div cmsContent= {{
- id:'title',
- type: 'Text'}}
- ></div>
- <p cmsContent= {{
- id:'description',
- type: 'Text'}} ></p>
- </div>
- );
- })}
- <h2 cmsContent = {{
- id:'h2',
- type: 'Text'}} ></h2>
- const json = { fields: [
- {
- id: 'h1',
- required: true,
- type: 'Text'
- },
- {
- blocks: [{
- fields : [
- { id: 'title1', required: true, type:'Text' },
- { id: 'description1', required: true, type:'Text' }
- ] },
- fields : [
- { id: 'title2', required: true, type:'Text' },
- { id: 'description2', required: true, type:'Text' }
- ] }
- },
- {
- id: 'h2',
- required: true,
- type: 'Text'
- }
- ]
Add Comment
Please, Sign In to add comment