How to develop connect addon UI using react (and back end in node) with AP module Edited

I would like to keep react project saperately and use a common UI for my server as well as connect plugin.

I have used https://bitbucket.org/atlassian/atlassian-connect-express to create connect addon

and used https://github.com/facebookincubator/create-react-app to create a react app. 

I did a build using npm run build for react. and copied these files generated by build to  public folder of connect addon. This works well till i do not need AP.

The moment I wanted to use AP.request with react to call jira api from my addon, I got stuck. How do i achive using AP.request from react app?

Is there a sample code where react build is done saperately for addon and then integrated it into the node project(Which server api onlly)?

I did find a very useful stuff in https://www.atlassian.com/atlascamp/2017/archives/advanced-techniques/react-for-re-use-creating-ui-components-with-confluence-connect

But this is more of integrating component in to addon and not regarding how to create your addon UI independently in react. Any idea?

0 comments

Comment

Log in or Join to comment
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,323 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot