Skip to content
This repository was archived by the owner on Jan 17, 2021. It is now read-only.

Integrate a React app inside the current application #47

Open
3 tasks
ferreiro opened this issue Jan 18, 2019 · 3 comments
Open
3 tasks

Integrate a React app inside the current application #47

ferreiro opened this issue Jan 18, 2019 · 3 comments

Comments

@ferreiro
Copy link
Owner

ferreiro commented Jan 18, 2019

Once we have the react app set up, we need to start adding our first components to it. Also, we need to hydrate those components with data from the backend. In order to achieve this we have to do updates to the template views to pass data.

Acceptance criteria

  • Creating a new dummy react app inside ferreiro-client.
  • Add a new task to Gulp (or use webpack?) that will get as the source the react app folder, will transpile it using babel and put it in the server dst folder.
  • Update the app scripts to import this generated new asset and make sure we can load the react app.

Some resources

@ferreiro
Copy link
Owner Author

Hey @kwelch for creating the react app, do you recommend to use create-react-app script? I think w will need to update the gulp task in any case to transpile the react app and all of this and put it on the server.

What alternatives do we have?

@kwelch
Copy link
Collaborator

kwelch commented Jan 22, 2019

Create react app is always my go to for starting out. You will have to update gulp to call your yarn build for the react app. It should be very minimal add in theory.

@ferreiro
Copy link
Owner Author

ferreiro commented May 7, 2019

This looks promising! In a hackathon I attended, I come up with the solution to make this work https://github.com/ferreiro/facebook-hackathon/tree/94761cb653a597c6782c2ba769f89d5b36d45c69

So the idea is to integrate that into this project :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants