How to use react-rest-resource - 10 common examples

To help you get started, we’ve selected a few react-rest-resource examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Okazari / FatesEditions / ui / src / components / Old / App / Sidebar / Menu / MenuContainer.js View on Github external
// eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import { DraftService } from '../../../../../services'
import Menu from './Menu'

export default restHoc(Menu, DraftService)
github Okazari / FatesEditions / ui / src / components / Old / common / Book / BookAuthor / BookAuthorContainer.js View on Github external
// eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import BookAuthor from './BookAuthor'
import { AuthorService } from '../../../../../services'

const ConnectedComponent = restHoc(BookAuthor, AuthorService)
export default ({ author }) =>
github Okazari / FatesEditions / ui / src / components / Old / common / Book / BookGenre / BookGenreContainer.js View on Github external
// eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import BookGenre from './BookGenre'
import { GenreService } from '../../../../../services'

const ConnectedComponent = restHoc(BookGenre, GenreService)
export default ({ genre }) =>
github Okazari / FatesEditions / ui / src / components / Old / Write / Book / BookContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import Book from './Book'
import { DraftService } from '../../../../services'

const ConnectedComponent = restHoc(Book, DraftService)
const Component = ({ params }) => {
  return 
}
export default Component
github Okazari / FatesEditions / ui / src / components / Old / common / Book / BookList / Book / BookContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import Book from './Book'
import { BookService } from '../../../../../../services'

export default restHoc(Book, BookService)
github Okazari / FatesEditions / ui / src / components / common / Book / BookContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import { BookService } from 'services'
import Book from './Book'

export default restHoc(Book, BookService)
github Okazari / FatesEditions / ui / src / components / Old / Share / EditBook / EditBookContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import Book from './EditBook'
import { BookService } from '../../../../services'

const ConnectedComponent = restHoc(Book, BookService)
const Component = ({ params }) => {
  return 
}
export default Component
github Okazari / FatesEditions / ui / src / components / Old / Write / Page / common / EffectRow / EffectRowContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import EffectRow from './EffectRow'
import { BookService } from '../../../../../../services'

const ConnectedComponent = restHoc(EffectRow, BookService)
export default ({ bookId, effect, index, updateResource, removeEffect }) =>
github Okazari / FatesEditions / ui / src / components / common / BookGenre / BookGenreContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import BookGenre from './BookGenre'
import { GenreService } from '../../../services'

const ConnectedComponent = restHoc(BookGenre, GenreService)
export default ({ genre }) =>
github Okazari / FatesEditions / ui / src / components / Write / Page / PageContainer.js View on Github external
//eslint-disable-next-line
import { RestHoc as restHoc } from 'react-rest-resource'
import React from 'react'
import Page from './Page'
import { PageService } from '../../../services'

const ConnectedComponent = restHoc(Page, PageService)
const Component = ({ params }) => {
  return 
}
export default Component

react-rest-resource

As i used `redux` along with `react` on a project, we decided to store data in an `api` reducer. We had to makes some asynchronous actions using `redux-thunk`. After some time I definitly felt not comfortable with this way of storing api data. I wanted

Unknown
Latest version published 8 years ago

Package Health Score

34 / 100
Full package analysis

Popular react-rest-resource functions