postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

Created Code Generator for React JS in reference to issue #351

Open 2019UCP1350 opened this issue 4 years ago • 6 comments

As the popularity of react js to build websites and web apps is increasing, therefore, there is a need for the hour to build codegen for reactjs.

Here are the few websites which show the popularity of reactjs https://ezeelive.com/reactjs-popularity/ https://www.heliossolutions.co/blog/top-7-reasons-why-reactjs-development-is-so-popular/

Moreover, One of the major social media web-app Whatsapp is also built-in reactjs

2019UCP1350 avatar Mar 27 '21 04:03 2019UCP1350

@abhijitkane if you could look into this.

original ref issue -- https://github.com/postmanlabs/gsoc/issues/36

Sharath-Postman avatar Apr 06 '21 07:04 Sharath-Postman

@abhijitkane Could you have a look at my work?

2019UCP1350 avatar May 14 '21 11:05 2019UCP1350

@2019UCP1350 We already have nodejs-axios. Could you summarize in a comment how different is this codegen from the that one?

umeshp7 avatar Mar 15 '22 07:03 umeshp7

@2019UCP1350 As @umeshp7 suggested, we already have added support for nodejs (axios) framework. From what I gathered in PR, it also do it in axios right?

In that case, can you mention if existing code gen for axios works for you as expected and if not does this PR add any new features to it?

VShingala avatar Feb 06 '23 10:02 VShingala

@2019UCP1350 As @umeshp7 suggested, we already have added support for nodejs (axios) framework. From what I gathered in PR, it also do it in axios right?

In that case, can you mention if existing code gen for axios works for you as expected and if not does this PR add any new features to it?

When I had made this PR, Someone has requested the codegen snippet for reactjs, and it was not there. Moreover, I used the try, catch and async, await syntax rather than nested then and catch syntax making the code snippet look pleasant and cleaner. Also, currently, only node js Axios support is there, and snippet generates code for node js rather than react js which uses import differently than node js.

2019UCP1350 avatar Feb 06 '23 12:02 2019UCP1350

@2019UCP1350 Makes sense! Thanks for the contribution and fast response. We'll evaluate these changes and see if we can accommodate them in Postman app codegen snippets.

VShingala avatar Feb 06 '23 12:02 VShingala