OpenLiberty / guide-rest-client-reactjs

A guide on how to access a simple RESTful web service and consume its resources with ReactJS in Open Liberty.
https://openliberty.io/guides/rest-client-reactjs.html
Other
2 stars 1 forks source link

Dev content review #3

Closed gkwan-ibm closed 4 years ago

gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago

@DannyS03

salmad3 commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago

@DannyS03

salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago

@DannyS03

will review again after address the above

salmad3 commented 4 years ago

@gkwan-ibm

gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
* [ ]  app not work on finish and start

* [ ]  restructure the flow, just create Fetchdata.js once and explain the detail by multiple subsection - run mvn generate-resources later

* [ ]  or precreate a simple Fetchdata.js and ask readers to replace (still replace one) - then we can ask readers to run the mvn generate-resources before liberty:dev

* [ ]  add more content to showcase the change of the artists.json
gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago

@DannyS03

salmad3 commented 4 years ago

Addressed your feedback @gkwan-ibm. You can review changes.

salmad3 commented 4 years ago

Draft site is updated with latest changes.

gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
* **Project Configuration**

  * [ ]  rewrite both statements to explain clearly

    * "The static files" readers may not know what you are talking about
    * in general, I guess readers may not understand the first statment
    * in second statement, readers may not know target directory, should say something like "copy the generated ReactJS files to the web content of the application"
  * [ ]  The subsection "**Creating the default page**" should be a main section

    * [ ]   the path in "Create the index.js file." is still wrong

* **Creating the React components**

  * [ ]  "The `return` statement ..." The hotspot of `return` should cover the line `);` too

* [ ]  don't know why the start directory not work again by following the instruction

  * the static directory with other files were not copied to the `src\main\webapp directory`
salmad3 commented 4 years ago

Ready for review.

gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago
salmad3 commented 4 years ago
gkwan-ibm commented 4 years ago
gkwan-ibm commented 4 years ago

Note: Overall comments for the above

salmad3 commented 4 years ago

Creating the React components

The [hotspot=react-library file=1]`React library` imports the `react` package for you to create the [hotspot=class file=1]`Fetchdata` component as an inheritance of the `React Component`, and use its values.