0.0.3 • Published 7 years ago
fj-react-toolbox v0.0.3
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>