-
Notifications
You must be signed in to change notification settings - Fork 36
Using webpack
Marius Ileana edited this page Apr 26, 2016
·
2 revisions
This page tries to help you getting started developing and building a semantic-react
project using Webpack.
Currently, it is a work in progress. Besides minimal steps, a tutorial is planned to be included.
Most of the information is gathered from issues, tutorials and any other people experience.
Webpack is a great module bundler well suited for big projects. While this comes with some complexity, once you started it will give you benefits on the long run.
For now, these are the minimal first steps:
- Add the following line to
package.json
file:
dependencies: {
...
"semantic-react": "git+https://github.com/hallister/semantic-react.git"
}
-
Run
npm install
to have this new dependency installed. -
Use a semantic-react component by importing it using ES6 style:
import { Segment } from 'semantic-react';