spread-eagle
v1.0.6
Published
Content Management System via Google Sheet
Downloads
2
Readme
spread-eagle
Content Management System via Google Sheet
Install
npm install spread-eagle
yarn add spread-eagle
Usage
- Create a Google Sheet that follows this structure.
- A template sheet is mandatory
- At least one "blueprint" sheet is mandatory
- Publish the sheet to the web.
- File > Publish to the Web (Entire Document, Web)
- Pass in the workbook ID via props (bookId) and the corresponding sheet (sheetName)
import React, { useState, useEffect } from 'react'
import { Spread, getSheets } from 'spread-eagle'
import 'spread-eagle/dist/index.css'
const App = () => {
const [sheets, setSheets] = useState()
useEffect(() => {
getSheets('16oebHDZ46f7noY1fEn7EaiJ8f1CtxfO0Fd0R2jsODfo').then((res) =>
setSheets(res)
)
}, [])
return (
<>
<Spread sheetName='home' sheets={sheets} />
</>
)
}
export default App
License
MIT © miles-moran