Meteor, Semantic UI, and React

#1

Hello, This is my first time using semantic ui and react in meteor js.

I follow this https://react.semantic-ui.com/introduction

i got error on my meteor client
ReferenceError: Rating is not defined

This is my code

import React, { Component } from 'react';


export default class Task extends Component {
    

    render() {

        return (
            <Rating rating={1} maxRating={5} />
        )
    }
}

please help solve this problem

please help me, if there any sample meteor - semantic ui - react.

#2

You need to import the Semantic components

import { Rating } from "semantic-ui-react";

#3

Here’s a nice template for Meteor + Semantic UI + React:

I have a fork which is updated to Meteor 1.6.1:

1 Like
#4

wow great, is the router support server side routing?

#5

nice thanks, really solve the problem
need to install

meteor npm install --save semantic-ui-react