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!

176 questions
4
votes
1 answer

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
  • 9,467
  • 27
  • 121
  • 195
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,734
  • 2
  • 18
  • 28
4
votes
1 answer

Uncaught ReferenceError: Showdown is not defined, ReactJS.NET

Problem: I'm working this tutorial to learn about React.js. I've added the showdown.js file to the project correctly and proved it is loaded as a script file in the client browser. When page loads and I look at the console it shows the error…
JWP
  • 6,672
  • 3
  • 50
  • 74
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
  • 5,265
  • 3
  • 25
  • 41
3
votes
1 answer

how to change referrer-policy in react js

I want to change referral policy in chrome the default policy for new update in chrome is strict-origin-when-cross-origin I need to change it to no-referrer-when-downgrade I am using reactjs how can I change the policy THank you
Kamalesh A
  • 31
  • 1
  • 2
3
votes
1 answer

How can I use React Hooks with ReactJS.NET?

We are currently migrating our frontend from jQuery to Reactjs.NET. We are using React 16.8 which allows us to use React Hooks instead of classes. We setup our project successfully and tried it first with classes and server side rendering which…
3
votes
0 answers

Hot reloading in visual studio 2017 for asp.net core spa (react) app with custom web server used via proxy

I have a asp.net core 2.2 react template based app The react app under ClientApp has my own build script for react app which compiles stuff in a lib folder under ClientApp via 'npm run build' custom script. More importantly, the app runs with a…
3
votes
1 answer

How can I use "import" in my ASP.NET MVC ReactJS project?

Being new to both ReactJS and ASP.NET MVC, I am having trouble using the import key word for including my anyComponent.jsx files. I have only figured out two options: Use a script tag on the index.cshtml page Leave all components in one file In my…
3
votes
2 answers

How to refresh data of one component from another component in react js

I'm new to react js and creating one sample application with and some basic CRUD operation. I'm able to display a list, but I don't have any idea if I delete any record then how to refresh data grid. Here is my code: var DeleteRow =…
Hina Khuman
  • 757
  • 3
  • 14
  • 41
3
votes
0 answers

Error for ReactJs.Net server side rending with ES6

I have been working withe ReactJs.Net and MVC5 application and facing issues with server side rending while using ES6 and babel transpiler. I used expose-loader for exposing the component globally. But it is working only in ES5 syntax . If I use ES6…
3
votes
0 answers

Transpile jsx to js and bundle it in bundleconfig.json

I'm trying to set up a ReactJS.NET project in an ASP.NET Core Applikation and bundle my jsx-files, but it seems to be harder than i expected. Now I have read tons of articles and looked through the documentation on thier site, but i doesn't help me…
3
votes
1 answer

Using a react component from npm with reactjs.net

How can I add a react component from npm to my Startup.cs? For their demo that I followed, I currently have: app.UseReact(config => { config.AddScript("~/js/helloworld.jsx"); }); and this works fine. If I have a component that I've installed…
Alex
  • 1,549
  • 2
  • 16
  • 41
3
votes
1 answer

ReactJS.net unable to debug

I've created a small app using ReactJS.Net and ASP.NET 5. If I render a component serverside using @Html.React and tie that to the MVC @using System.Threading.Tasks @using React.AspNet @model Models.DashboardViewModel @Html.React("MessageBoard",…
Ryan Langton
  • 6,294
  • 15
  • 53
  • 103
3
votes
1 answer

ReactJS component throws not define but is rendered?

I am building a feed with ReactJS.NET but have problems with a error that chromes gives me. When page is loaded I can see 1 error Uncaught ReferenceError: FeedBox is not defined (anonymous function) its thrown from the React.render line : …
Banshee
  • 15,376
  • 38
  • 128
  • 219
3
votes
2 answers

Can ReactJS initialize its state based on a server-side rendered DOM?

I love how easy it is to do isomorphic JavaScript in React. The only thing that bothers me with how it works is that the data has to be downloaded twice by the browser. First in the DOM markup and again in JSON format to initialize state at runtime.…
1
2
3
11 12