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

ReactJs Ajax Get

I'm trying to get a normal ajax get call to be executed within a reactJs component with the onClick of a button. When I try with my following code nothing happens, but the api is live and is working. It doesn't even log anything to the browser…
Frijx
  • 11
  • 4
0
votes
1 answer

ReactJs.NET webpackJsonp is not defined in server side rendering

I have been following along the guide to make Webpack work with React.NET (at https://reactjs.net/guides/webpack.html), and one of my requirements is to have third party libraries in a separate bundle. For this, I've made use of the…
Walden2
  • 33
  • 4
0
votes
1 answer

How to Read Respose form a WebAPI in ReactJS

I'm not able to read the Response in the ReactJS code, but the API Call is returning the proper JSON data with Response Code: 200 My ReactJS code is fetch('http://localhost:8090/api/Contact/GetContactType', {mode: 'no-cors'}) …
B.Balamanigandan
  • 4,713
  • 11
  • 68
  • 130
0
votes
1 answer

Add ScriptBundle in Cassette wont work

I'm trying to bundle my JSX-files in a asp.net core applikation, but i can't get anything to work... I'm also using ReactJS.NET. At the moment I'm using Cassette to bundle me files and I have followed this guide + the guides on Cassette's own site…
0
votes
1 answer

Nested datatable while mapping

Basically I have two tables products and categories. I managed to map out products with: var ProductsList = React.createClass({ render: function () { var EachProduct = this.props.data.map(function (item) { return ( …
0
votes
1 answer

Redirection in reactjs

I have a problem which i couldn't solve it for a while. I have mvc application which will render a login page upon successful login i have to redirect to a particular page. The login authentication is done by Api controller which will give me a json…
0
votes
1 answer

jQuery requires a window with a document in webpack

I'm using ReactJS.net (server-side render) and when I use jquery in Webpack then I got error here is my error Error while rendering "Components.ToDoListSkeleton" to "react_0LmYYfSk30qdrKJQe4McUQ": Error: jQuery requires a window with a …
Cuong Tran
  • 17
  • 4
0
votes
1 answer

Specify which Javascript engineReactJS .NET uses

So, I know it's possible to specify a specific javascript engine with react for server side rendering. I just can't seem to find any info on it. Here's a blurb from one of their Github issues that confirms that it's possible: Have you tried running…
0
votes
2 answers

MVC-ReactJS button onclick event not get fired

I am creating simple stuff seeking for capturing button click event to some text or get some alert. ReactJS JSX code is pasted below: var SearchBar = React.createClass({ getInitialState: function() { return {message: "test"}; }, test1:…
NeoAsh
  • 1,013
  • 1
  • 8
  • 11
0
votes
0 answers

combine value from array with input element to create a reactjs

I have a use case where i need to replace '_____' with input tags. I am using Reactjs.NET. I thought I could do the below, but I get an error. The output is: Error: Uncaught TypeError: Cannot read property 'getDOMNode' of undefined and Uncaught…
shresthaal
  • 675
  • 4
  • 13
  • 28
0
votes
1 answer

Using ReactJs, How do I update my form fields when my parent object sent in from props changes?

I am using REactJs to dynamically create some form fields. these form fields are mapped to a document object. Visually it is a three column app. A document queue displayed on left with many clickable document icons , fields in the middle and the…
monkeyjumps
  • 702
  • 1
  • 14
  • 24
0
votes
0 answers

No recompile of JSX file when debugging

ReactJS.NET is not recompiling when debugging. It compiles once, and then it remains static. Strangely, when I make an error in my and my app is already built, I can fix the JSX and it will compile without having to rebuild my app but it will only…
ovatsug25
  • 7,786
  • 7
  • 34
  • 48
0
votes
1 answer

Pass a relative image url to a Reactjs component from asp.net

How should i pass the relative url to my ReactJs component from a asp.net mvc 5 project? Sample URL: sample component: var ImageViewer = React.createClass({ render: function () { …
monkeyjumps
  • 702
  • 1
  • 14
  • 24
0
votes
2 answers

ReactJS NET on MVC5 fails to resolve dependency

I have the same problem as mentioned in the following question here: ReactJS.Net on MVC5 fails to resolve dependency Everything in this question is exactly the same, and just as descriptive. However, this question must be answered again, because of…
sksallaj
  • 3,872
  • 3
  • 37
  • 58
0
votes
1 answer

TransformJsx.proj Error

I am adding ReactJS to a new ASP.NET MVC site, that I have been working on. From NuGet, I installed the "ReactJS.Net (MVC 4 and 5)" package. When I tried running the the code, I get errors pointing to the TransformJsx.proj on the element…
Joe Jazdzewski
  • 723
  • 2
  • 7
  • 16
1 2 3
11
12