1.1.3 • Published 3 years ago

cra-template-sidkarthik v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

CRA-template for React-Tailwind by SidKarthik

This ia a template with a robust file structure, tailwind, routing system, lazy-loading and skeleton-loading Pre-configured. You can jump right into development!

Setup

Run the following command in the terminal to use template

npx create-react-app <app-name> --template sidkarthik
npm run setup

Using the Router

Step 1

Create a New <filename>.js in Pages folder

Step 2

-> Create a new variable in constants/routes.js and specify route in the format:

export const <routename> = '<path>'

Step 3

-> Import the page in App.js using the following format in-order to use lazy-loading :

const <pagename> = lazy(() => import(<path>));

Step 4

-> Add Route tag in the provided region and set the following props:

path={ROUTES.<routename>}
component={<pagename>}

Note

-> React works on basis of rendering in layers hence the stack should be in descending order i.e., the bottom-most layer is rendered first

Learn more

create-react-app Tailwind Lazy-loading React-loading-skeleton

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago