Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80942512
JournalList.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 3, 09:22
Size
555 B
Mime Type
text/x-java
Expires
Thu, Sep 5, 09:22 (2 d)
Engine
blob
Format
Raw Data
Handle
20477300
Attached To
rOACCT Open Access Compliance Check Tool (OACCT)
JournalList.js
View Options
import React from 'react';
import API from '../api';
export default class JournalList extends React.Component {
state = {
journals: []
}
componentDidMount() {
this.getJournals();
}
getJournals = async () => {
let res = await API.get(`journal/`);
let { data } = res.data;
this.setState({journals: data});
};
render() {
return (
<ul>
{ this.state.journals.map(journal => <li key={journal.id}>{journal.name} ISSN: {journal.issn.map(item => <p> - {item} </p>)}</li>)}
</ul>
)
}
}
Event Timeline
Log In to Comment