locked
Using Rsuite React Component in My ASP.NET MVC Project RRS feed

  • Question

  • User1851820814 posted

    Hey,

    I have an ASP.NET MVC project developed in Visual Studio 2019, I already install ReactJS.Net from NuGet.

    I successfully run a simple Hello World like page by using code below:

    class CommentBox extends React.Component {
        render() {
            return (
                <div className="commentBox">
                    <h1>Comments</h1>
                    <CommentList />
                    <CommentForm />
                </div>
            );
        }
    }
    
    class CommentList extends React.Component {
        render() {
            return (
                <div className="commentList">
                    <Comment author="Daniel Lo Nigro">
                        Hello ReactJS.NET World!
                    </Comment>
                    <Comment author="Pete Hunt">This is one comment</Comment>
                    <Comment author="Jordan Walke">
                        This is *another* comment
                    </Comment>
                    <Comment author="Abdul Samad"> </Comment>
                </div>
            );
        }
    }
    
    class CommentForm extends React.Component {
        render() {
            return (
                <div className="commentForm">Hello, world! I am a CommentForm.</div>
            );
        }
    }
    
    
    class Comment extends React.Component {
        render() {
            return (
                <div className="comment">
                    <h2 className="commentAuthor">{this.props.author}</h2>
                    {this.props.children}
                </div>
            );
        }
    }
    
    
    
    ReactDOM.render(
        React.createElement(CommentBox, null),
        document.getElementById('content'),
    );

    Now I want to use MultiCascader React component from RSuite https://rsuitejs.com/components/multi-cascader/

    which I not able to achieve after doing too many strives, i already download the entire suite form Github: https://github.com/rsuite/rsuite

    please help

    Friday, February 5, 2021 5:54 PM

All replies