fj-react-toolbox

0.0.3 • Public • Published

react-fj-toolbox

react toolbox

PromiseView

inject promise value to child component

Example:

const ShowId=({name,id})=><div>{name}:{id}</div>;
const getId=axios.get('/id').then(resp=>resp.data);

<PromiseView promise={getId()} then="id">
      <ShowId name="jack"/>
</PromiseView>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    1
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i fj-react-toolbox

Weekly Downloads

1

Version

0.0.3

License

ISC

Last publish

Collaborators

  • fangjian