question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why use Semantic UI react bindings over Semantic UI?

See original GitHub issue

Hi, I had a general doubt over why using these binding are necessary. I can straight away see that, yes we need React bindings since we do not have the good old javascript. But, if I do not require the JavaScript, does it make sense to use a React component for a simple grid like

<Grid>
</Grid>

instead of rendering it as

<div class="ui grid">
</div>

Note that in the second case I’ve loaded the semantic.min.css in my index.html page so that does work. As for just design and non-JavaScript aspects, is there any caveat that I’m missing out for using react bindings over SUI tags. Ofcourse, keeping aside the usual advantages such as re usability of react components, etc etc.

On a more general note. Is it not advised to use the jQuery with react which is why using react bindings helps? I’ve seen some answers in the past about the general usage of mixing jQuery with react but haven’t gotten any solid reason for it.

Any feedback is greatly appreciated!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
levithomasoncommented, Jul 11, 2017

@brianespinosa is absolutely right, though I’d extend this statement:

If you were working on an extremely simple project, it would be much easier.

Even a simple project uses a Dropdown. Try using a SUI jQuery dropdown with dynamic options in a React app and you’ll understand the exact reason I wrote SUIR 😃

3reactions
levithomasoncommented, Jul 11, 2017

That answer was more directed at the props vs className discussion. Reasons for using SUIR over SUI are detailed in the docs:

http://react.semantic-ui.com/introduction

The primary reason is that we removed all jQuery and rewrote the components in React. Everything else is bonus material.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Semantic UI vs Semantic UI React | What are the differences?
"Easy to use and looks elegant" is the primary reason why developers consider Semantic UI over the competitors, whereas "Great look&feel" was stated...
Read more >
Integrations Using Semantic UI with Other Libraries
Contribute to React Development​​ Semantic UI React bindings are still in development, but are available for most components.
Read more >
Pains with React + Semantic UI - Meteor forums
Semantic UI components are designed to be compatible with libraries that tightly manage UI lifecycle like React. No special bindings are needed.
Read more >
Has anyone been able to setup create react app with semantic ...
Semantic UI React ... All jQuery functionality has been re-implemented in React. ... Declarative APIs provide for robust features and prop ...
Read more >
Best Semantic UI Alternatives From Around The Web
Material UI is a set of React-based components that have been given the Material Design treatment. Material-UI is a package that allows us...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found