fj-react-toolbox
v0.0.3
Published
react component toolbox
Downloads
4
Maintainers
Readme
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>