Closed jimmy1wu closed 4 years ago
Thank you for the feedback, @jimmy1wu. Good points raised about the concepts.
For compiling, yes, in this case because we are using create-react-app
it would depend on Babel. The other sections will use your suggestions as well.
Using Axios was more for reliability and seems to be preferred by developers after some research.
create-react-app
and since we used create-react-app
to configure the front end there is mention of it. For the "props", would you suggest just changing it to "properties" rather than going into detail?
I don't think you need bootstrap or react-boostrap packages. you are already import the react-table stylesheet for the table component
Was not addressed. If you remove them, all that is affected is the font of the artists web service title and it'll use the default font from CRA. bootstrap and react-bootstrap seem unnecessary
For the "props", would you suggest just changing it to "properties" rather than going into detail?
depends on the scope of the guide
I did not explain what the "defaultPageSize" and "pagesizeoptions" table props were as I did not want to go into too much about the table itself; just a high-level reference. Before, I had also explained the table headers, accessors, but we noticed it took away from the focus which should be: consuming a rest service. Though, still valid. What do you think?
It felt strange since you explained the first 2 props and then stopped.
I rewrote your convertData function below using the spread operator and i think it looks cleaner. you can use it if you agree. Also i found it weird that you declare your convertData function expression at the bottom, since it looked like you were calling it before it was declared. i suggest moving it up or just putting the logic in the callback.
axios('http://localhost:9080/artists')
.then(response => {
const artists = response.data;
const posts = [];
for (const artist of artists) {
const { albums, ...rest } = artist;
for (const album of albums) {
posts.push({ ...rest, ...album });
}
};
this.setState({
posts,
isLoading: false
});
})
Updated to use the default font.
Was not addressed. If you remove them, all that is affected is the font of the artists web service title and it'll use the default font from CRA. bootstrap and react-bootstrap seem unnecessary
I changed it to properties for now. I would say the scope of the guide is more focused on consuming the returned JSON and running the front end on the OL server as a packaged application and maybe not so much all the nitty gritty.
Thanks for the suggestion, yes this is cleaner 👍
I rewrote your convertData function below using the spread operator and i think it looks cleaner. you can use it if you agree. Also i found it weird that you declare your convertData function expression at the bottom, since it looked like you were calling it before it was declared. i suggest moving it up or just putting the logic in the callback.
feedback addressed. closing
Functionality
curl
command where applicableFormatting & Presentation
README.adoc
checks:$(cmd)
format and not`cmd`
[INFO]
tabpom.xml
checks (if files are present):pom.xml
files: