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
2
votes
2 answers

Asp .Net Core 5 Identity - How to fetch a user?

In the new SPA (react and angular) web templates for .Net core 5. I'd like to fetch the current logged in User. However, when I try to get a user in the controller the User doesn't have anything populated. Does anyone know how to achieve this with…
2
votes
0 answers

react-select library dependencies in .net core

I am new to react I am using react libraries by including them in my _Layout.cshtml So i am not able to use the multi select react dropdown from the react-select library I added some dependencies for react-select but i still got the error “uncaught…
CH-siko
  • 23
  • 4
2
votes
0 answers

How to add client side libraries with ReactJS.net?

I am using ReactJS.net for my .Net MVC web application. I have seen tutorials for reactJS where we can install libraries with npm. Similarly, I am tying to add Tabulator data table library to my application that uses ReactJS.net I have tried…
Anil P Babu
  • 1,235
  • 3
  • 26
  • 47
2
votes
0 answers

how to solve errors when running webpack?

webpack problem became an error because of the typecript (ts and tsx) I changed it to javascript (js and jsx). the original code is the typescript I took from Github Image webpack error file webpack.config.js var webpack = require("webpack"); var…
2
votes
0 answers

How to resolve Webpack errors reacting with net core

webpack problem became an error because of the typecript (ts and tsx) I changed it to javascript (js and jsx). the original code is the typescript I took from Github Image webpack error file webpack.config.js var webpack = require("webpack"); var…
2
votes
0 answers

How Webpack error (REACTJS WITH .NETCORE)

webpack problem became an error because of the typecript (ts and tsx) I changed it to javascript (js and jsx). the original code is the typescript I took from Github Image webpack error file webpack.config.js var webpack = require("webpack"); var…
2
votes
0 answers

Incorrect arrow function minification inside function argument

TL;DR An arrow function (x, y) => { x[y.k] = y.v; return x; } is minified to (x, y) => x[y.k] = y.v, x inside a function call, so the use of the comma , without the curl braces { } messes up the function arguments. Is this my mistake, or an…
Billy Brown
  • 2,272
  • 23
  • 25
2
votes
0 answers

Compile using babel in a C#/.NET project

Trying to use babel to compile some code in C#/.NET project, following the example https://babeljs.io/setup#installation for C#/.NET. Installed the package React.Core using NuGet Package Manager (Install-Package React.Core) in a simple Hello world…
H.C
  • 565
  • 7
  • 28
2
votes
2 answers

How to pass data from ASP.NET View to React component in ReactJS.NET

I'm trying out ReactJS.NET in a .NET Core MVC project where I've got an ASP.NET View (cshtml) with a React component in it, which I initialize with: Now I want to pass data from the…
Pascal R.
  • 2,024
  • 1
  • 21
  • 35
2
votes
0 answers

How to import react-document-title in app.js - React JS?

I am trying to use REACT JS in MVC 4.x Framework. I am able to set the header tag using REACT. However, I am unable to set the title of the page using REACT.JS in ASP.NET. I have tried importing DocumentTitle to set the title of the page. import…
Prawn Hongs
  • 441
  • 1
  • 5
  • 17
2
votes
0 answers

ReactJS.Net gives error hydrate is not a function when clientOnly = true on Html.React()

After upgrading Nuget package for React.Core to v3.3.0 I get the error - ReactDOM.hydrate is not a function. @Html.React("DummyComponent", props, clientOnly: true) @Html.ReactInitJavascript() serverOnly: true does not have any problem with…
2
votes
1 answer

How to see actual React error in browser log in ASP.NET MVC application when using Visual Studio

I just installed ReactJS.NET in my application, and plan to use it on a single page. I am used to making applications where the "whole thing" is React (and Typescript and Webpack). However, if I simply install ReactJS.NET and import the tutorial…
Lars Holdgaard
  • 9,496
  • 26
  • 102
  • 182
2
votes
1 answer

ReactJs Component not showing

I'm a newbie to reactjs and trying to test a very basic component, however it seems all my struggle is futile because its not showing up in the browser. I'm using asp.net MVC 5 app and I've been following along this tutorial…
Voice Of The Rain
  • 495
  • 1
  • 8
  • 24
2
votes
0 answers

How to use ReactJS.NET with multiple server-side bundles

I use ReactJS.NET with my own server-side bundle that has ReactJS embeded. It is registered as shown below: using React; [assembly: WebActivatorEx.PreApplicationStartMethod(typeof(My.Little.Website.ReactConfig), "Configure")] namespace…
Serge van den Oever
  • 4,340
  • 8
  • 45
  • 66
2
votes
2 answers

line chart by Pure react.js

I am very new to react.js, I want to use react js to prepare a line chart without using other js file. Is it possible to create one with only react.js? Examples shown in the internet has D3 components, chart.js and so on. I am not sure if these are…
Maddy
  • 105
  • 1
  • 11
1 2
3
11 12