2
I have an application in .Net MVC where I use the Session
to store logged user data.
But within this application I have a screen made in React which will be accessed externally (that is, it is a separate project), but I need to pass the ID of the logged in .NET to the React.
How to carry this data and recover in React by url ?
Example of . Net URL:
<li class="filtro"><a href="https://localhost:44324/@Session["IdUsuarioLogado"]" target="_blank"><i class="fas fa-tachometer-alt "></i> Operação</a></li>
Main screen that will receive the Operation.js parameter (React):
import React, { Component } from 'react';
export default class Operacao extends Component {
constructor(props) {
super(props);
}
componentWillMount() {
}
componentDidMount() {
}
render() {
return (
<div>
</div>
);
}
}