Questions tagged [react-engine]

a composite render engine for universal (isomorphic) express apps to render both plain react views and react-router views

What is react-engine?

  • a react render engine for Universal (previously Isomorphic) JavaScript apps written with express
  • renders both plain react views and optionally react-router views
  • enables server rendered views to be client mountable

Links

10 questions
13
votes
2 answers

Server-side variables to Client-Side with React-Engine and Express

I'm reasonably new to React/React-Engine. I have a config on the server-side that I need to pass certain values of to client-side however I have a dependency on NODE_ENV in order to get the correct config out. var config = { local: { ... } …
Ant
  • 796
  • 2
  • 7
  • 13
12
votes
1 answer

react-engine vs other template engines

I was wondering to use paypal's React Engine (https://github.com/paypal/react-engine), but I have some doubts: What are the benefits over other template engines like Handlebars? Why upload .jsx files, and not (jsx precompiled/transformed) .js files?…
AlexAcc
  • 601
  • 2
  • 10
  • 28
3
votes
1 answer

Access server props from within redux?

I'm trying to use redux, react-engine, and react-router. The issue or question I have is that react-engine provides an object of props that come from the server. How do I access these props from within my ProvidedApp? ProvidedApp.js import React…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
2
votes
2 answers

Isomorphic React, advantages of prerender.io over react-engine?

I've seen prerender.io is a solution based on phantom.js while paypal's react-engine seems lighter solution. I need to decide which one to use. What is the advantages of prerender.io over react-engine ? for SPA and no SPA.
alfonsodev
  • 2,714
  • 2
  • 23
  • 30
1
vote
0 answers

Checksum Invalid - SSR props to Client

I'm using the react engine react-engine on GitHub to create a node, express app with react for the views. For the most part, my app is rendered on the server. However, on one page/express route I require the view to be rendered server-side and then…
tkiddle
  • 480
  • 1
  • 3
  • 12
1
vote
1 answer

React engine is causing "Cannot find module" error

I'm using react-engine to supply the server with access to react components. With react-engine you can feed an express react by routing a url and using res.render. To do this you need to provide a path the docs specify req.url. app.use("/",…
ThomasReggi
  • 55,053
  • 85
  • 237
  • 424
0
votes
1 answer

onClick button event handler not working when using react.js JSX pages

I am trying to build a web app where I am trying to call a function on button click. I am using react-engine as templating engine using JSX pages. Below is my layout.jsx page import React from 'react'; import Success from "./components/success.jsx";…
Sourav
  • 496
  • 2
  • 12
  • 28
0
votes
0 answers

Browser's memory keeps increasing when using React-engine & React-router

I'm writing Isormophic Web Application by using React-engine & React-router. Before upgrading, my application is running well with the following configuration. "react": "^0.14.8", "react-dom": "^0.14.6", "react-engine": "^3.4.1", "react-router":…
0
votes
2 answers

Why won't React events fire?

I am creating an isomorphic app with Webpack, React-Engine, express using the React-Engine example. I finally worked it out so the code renders properly but I've come across a new problem standard events are not firing. I click on the button and…
EasilyBaffled
  • 3,822
  • 10
  • 50
  • 87
-1
votes
1 answer

Unable to invoke a function using onClick event handler in React JS JSX fie

Hi I have been trying to invoke a function using onClick button event handler to submit a form in my .jsx file. However, this doesn't seem to be happening. Below are the codes I am using to achieve the same. Layout.jsx (this has all the logic of…
Sourav
  • 496
  • 2
  • 12
  • 28