# Get started with Ganic ## With NPM / Yarn ### 1. Install Ganic, GanicDOM, GanicUseX ```bash # npm npm install ganic npm install ganic-dom npm install ganic-usex # or yarn yarn add ganic yarn add ganic-dom yarn add ganic-usex ``` ### 2. Config babel to support JSX ```.babelrc "plugins": [ [ "@babel/plugin-transform-react-jsx", { "pragma": "Ganic.createElement", "pragmaFrag": "Ganic.Fragment", } ], ... ``` ### 3. Write your code ```javascript import Ganic from 'ganic'; import GanicDOM from 'ganic-dom'; import { useState } from 'ganic-usex'; const App = ({ initState }) => { const [state, setState] = useState(initState); // ... return