Install node_modules
:
npm install
or
yarn
This project provides some useful script to help you quick start and build with web project, code style check and test.
Scripts provided in package.json
. It's safe to modify or add additional script:
npm start
npm run build
npm test
- JavaScript ES6
To configurate styled components to the project, create a proper Javascript file in src/assets/styles
and create a styled component as this following standard:
import styled from "styled-components";
/* For HTML origin components */
export const <Name_of_Styled_Component> = styled.<origin_component>`
/* ... */
`
/* For customized components */
export const <Name_of_Styled_Component> = styled(<customized_component>)`
/* ... */
`
To call the styled components that was defined in the former step,
import { <Name_of_Styled_Component> } from '<path>'
Within the download you'll find the following directories and files: