Questions tagged [reactjs.net]

Questions about ReactJS.NET, a library which helps using React from C# and ASP.NET MVC

ReactJS.NET makes it easier to use Facebook's React and JSX from C# and other .NET languages, focusing specifically on ASP.NET MVC (although it also works in other environments). It assumes you already have some basic knowledge about React. It is cross-platform and can run on Linux via Mono. Take a look at the tutorial to see how easy it is to get started with React and ReactJS.NET!

157 questions
12
votes
1 answer

ReactJS.net - How do I use ES6 modules

I have ReactJS.Net successfully running, including using ES6 syntax. I am using the default Jsx transformation pipeline, which is using Babel. Looking at source in the browser I can see that ES6 code has been converted to ES5 by ReactJS.Net I have…
zadam
  • 2,376
  • 2
  • 22
  • 31
9
votes
0 answers

How to debug server side React using ReactJs.net

I'm evaluating ReactJs.Net for server side rendering and I'm a bit confused as to how you can debug the server side rendered react\javascript code. Can someone explain what the options are or point me to a resource?
Ryan Vice
  • 1,901
  • 3
  • 19
  • 29
8
votes
1 answer

Can you pass model attributes from an asp.net model into a reactjs.net component?

I am using latest asp.net core with reactjs.net and rendering my react components server side, is it possible for me to pass not just the model, but the model attributes for validation purposes, without having to set up a dependency for a JS…
8
votes
6 answers

bind(): You are binding a component method to the component. React does this for you automatically?

I get this warning from reactJS.NET bind(): You are binding a component method to the component. React does this for you automatically in a high-performance way, so you can safely remove this call. See LikeCon Component looks like this var…
Banshee
  • 15,434
  • 36
  • 111
  • 198
7
votes
3 answers

ReactJS.NET - Bundles - TinyIoCResolutionException: Unable to resolve type: React.IReactEnvironment

I'm attempting to minify my .JSX files with ASP.NET Minification and Optimization via System.Web.Optimization.React. I've installed the MVC4 React Package as well as the Optimization package, but whenever I try to include a bundle I get the…
tymeJV
  • 99,730
  • 13
  • 150
  • 152
7
votes
4 answers

ReactJS.NET MVC tutorial doesn't work?

I'm trying to setup a new project in Visual Studio that is going to be MVC 5 with a single page app written in ReactJS. So I followed the guide on the ReactJS website. I got to the very first part where you run the project, and I got a syntax error…
Nick Coad
  • 3,346
  • 4
  • 25
  • 61
6
votes
1 answer

How to do server side rendering with Reacjs.Net with Redux together?

I'm trying to do server side rendering with an application made in ASP.NET MVC, using ReactJS and Redux. I'm using ReacJS.Net. My components are fine with client rendering. My application could be the one of the example from here :…
5
votes
1 answer

How to solve Unable to resolve type: React.ReactEnvironment Exception

I am getting the following error: Unable to resolve type: React.ReactEnvironment InnerException: Unable to resolve type: React.JavaScriptEngineFactory InnerException: Object doesn't support this property or method this is Application_Start …
Diaa Eddin
  • 331
  • 1
  • 12
4
votes
1 answer

Latest Babel (@babel/core v7) error "exports is not defined"

I've tried everything i could find so far and i'm still getting the error "exports is not defined". I am using ReactJS.NET (for NetCore2) and it is mandatory otherwise my entire app will not load under NetCore2. This is my .babelrc { "presets": [ …
Dante R.
  • 752
  • 1
  • 9
  • 31
4
votes
2 answers

windows Authorization in ReactJS and .NET Core API

We have a new application which is having ReactJS as front end and back end is .NET Core API. A requirement is to authorize the windows logon user with respect to Active Directory. The .NET Core API will be doing the Authorization part. We have…
user3363495
  • 135
  • 2
  • 9
4
votes
1 answer

Arrow functions not compiling

I've been using Reactjs.net with Visual Studio and it compiles .jsx files that contain class methods defined using arrow functions syntax... class A { m = () => { } } I've set up Webpack with ES2017 preset but it's giving an "unexpected…
Ian Warburton
  • 13,336
  • 19
  • 85
  • 164
4
votes
4 answers

Configuring React with Asp.net MVC4,getting error like Failed to load resource[app.jsx] in browser

Index.cshtml @{ ViewBag.Title = "Home Page"; }
user5593728
4
votes
0 answers

How to interact with Windows Authentication and Users group using React.js .Net

I am curious how one would interact with Windows Authentication using React.js. We have a little internal portal we are trying to set up, we already have predefined users groups and users that are in them. We are looking for a way to get those…
SoftwareSavant
  • 8,456
  • 26
  • 107
  • 186
4
votes
0 answers

Transpile js files with React.NET

Is it possible to trasnspile js files with React.NET in order to user es6 features in js files in browser that support es5? I use React.NET in a ASP.NET MVC project with React where it transpiles jsx files to js files through BabelBundle but if I…
Avi K.
  • 1,606
  • 1
  • 16
  • 28
4
votes
2 answers

Browserify and ReactJs.Net Server Side Rendering

I have been trying to get the Flux Todo List Tutorial running in an MVC project using ReactJS.Net. I am using Gulp and Browserify to bundle files and then making a call to render the React component in my view. Relevant part of…
RagtimeWilly
  • 4,597
  • 3
  • 19
  • 39
1
2 3
10 11