Home Passing the value of a variable(string) from a razor view to a React component
Reply: 0

Passing the value of a variable(string) from a razor view to a React component

user735
1#
user735 Published in June 20, 2018, 1:29 am

I am wondering if you have any suggestions in regard to passing the string from a razor view to a React component?

export default class WidgetModel extends Component {

  constructor() {
    super()
  }

  render() {
    const {  } = this.props,   
    return (  
      <p>{Copy}</p>           
    )
  }
}
   <div id="widget">
      <p>@vm.Copy</p>
   </div>

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.453198 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO