All Projects → 4GeeksAcademy → react-hello-webapp

4GeeksAcademy / react-hello-webapp

Licence: other
Professional Boilerplate for React Web Applications built by 4GeeksAcademy Students

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to react-hello-webapp

React Boilerplate
Production-ready boilerplate for building universal web apps with React and Redux
Stars: ✭ 53 (+26.19%)
Mutual labels:  react-boilerplate
React Boilerplate
React Boilerplate
Stars: ✭ 128 (+204.76%)
Mutual labels:  react-boilerplate
gatsby-starter-redux-saas
An Gatsby starter for Saas products. Uses redux and apollo and a graphql token auth backend.
Stars: ✭ 18 (-57.14%)
Mutual labels:  react-boilerplate
React Signup Verification Boilerplate
React Boilerplate - Email Sign Up with Verification, Authentication & Forgot Password
Stars: ✭ 96 (+128.57%)
Mutual labels:  react-boilerplate
Habr App
React tutorial for Habrahabr
Stars: ✭ 116 (+176.19%)
Mutual labels:  react-boilerplate
React Native Feature Boilerplate
Feature based Architecture for developing Scalable React Native Apps 🚀 using react, redux, sagas and hooks
Stars: ✭ 139 (+230.95%)
Mutual labels:  react-boilerplate
Silk
react app 开发cli工具,包括脚手架以及开发调试功能
Stars: ✭ 14 (-66.67%)
Mutual labels:  react-boilerplate
codewonders
😎 Adenekan Wonderful's Website
Stars: ✭ 37 (-11.9%)
Mutual labels:  context-api
Cwg React Starter
Pre-configured and Ready to use React Starter App. To save time in settings things up for new project. Almost everything needed is already configured. Just clone and start developing without wasting time in doing same stuffs for every project. (#codewithghazi)
Stars: ✭ 122 (+190.48%)
Mutual labels:  react-boilerplate
Eth Hot Wallet
Ethereum wallet with erc20 support / web wallet - built using react, web3, eth-lightwallet
Stars: ✭ 205 (+388.1%)
Mutual labels:  react-boilerplate
React Hot Loader Minimal Boilerplate
Minimal setup needed to run React Hot Loader v3
Stars: ✭ 108 (+157.14%)
Mutual labels:  react-boilerplate
Generact
Generate React components by replicating your own
Stars: ✭ 1,471 (+3402.38%)
Mutual labels:  react-boilerplate
React Hooks Redux Registration Login Example
React Hooks + Redux - User Registration and Login Tutorial & Example
Stars: ✭ 138 (+228.57%)
Mutual labels:  react-boilerplate
React Redux Hooks Starter
React-redux boilerplate using hooks 🎣
Stars: ✭ 69 (+64.29%)
Mutual labels:  react-boilerplate
react-glass
😆 Painless React development
Stars: ✭ 13 (-69.05%)
Mutual labels:  react-boilerplate
React Redux Registration Login Example
React + Redux - User Registration and Login Tutorial & Example
Stars: ✭ 1,011 (+2307.14%)
Mutual labels:  react-boilerplate
React Starter Boilerplate Hmr
React starter boilerplate with React Fast Refresh, React 17 and Webpack 5
Stars: ✭ 137 (+226.19%)
Mutual labels:  react-boilerplate
MonsterJS
MonsterJS - a game for learning JavaScript DOM Selectors while playing!
Stars: ✭ 26 (-38.1%)
Mutual labels:  context-api
scroll-sync-react
A scroll syncing library for react that is up to date
Stars: ✭ 49 (+16.67%)
Mutual labels:  context-api
Analytics React
[DEPRECATED AND UNSUPPORTED] The hassle-free way to integrate analytics into your React application.
Stars: ✭ 146 (+247.62%)
Mutual labels:  react-boilerplate

WebApp boilerplate with React JS

Open in Gitpod

Requirements:

  • Make sure you are using node version 10
  1. Install the packages:
$ npm install
  1. Create a .env file:
$ cp .env.example .env
  1. Start coding! and the webpack dev server with live reload, for windows, mac, linux or Gitpod:
$ npm run start

Styles

You can update the styles/index.css or create new .css files inside styles/ and import them into your current scss or js files depending on your needs.

Components

Add more files into your ./src/js/components or styles folder as you need them and import them into your current files as needed.

Note (New changes): Components have been converted into functions to support the use of hooks:

  • Instead of a class component, we're using a const function.
  • Class constructor and state have been replaced by useState() hooks.
  • componentDidMount() was replaced by useEffect({}, []) - It runs at mount thanks to the second parameter ([]).
  • Actions and Store still work the same way.
// Previous "Class Oriented"
export class Demo extends React.Component {
	constructor(props) {
		super(props);

		this.state = getState('code here');
	}
}

// New "Functional Oriented"
export const Demo = () => (
	const [state, setState] = getState('code here'); //using the state (if needed)
  const { store, actions } = useContext(Context); // using the context (if needed)

);

💡Note: There is an example using the Context API inside views/demo.js;

Views (Components)

Add more files into your ./src/js/views and import them in ./src/js/layout.jsx.

Context

This boilerplate comes with a centralized general Context API. The file ./src/js/store/flux.js has a base structure for the store, we encourage you to change it and adapt it to your needs.

React Context docs BreathCode Lesson view

The Provider is already set. You can consume from any component using the useContext hook to get the store and actions from the Context. Check /views/demo.js to see a demo.

import { Context } from "../store/appContext";
const MyComponentSuper = () => {
  //here you use useContext to get store and actions
  const { store, actions } = useContext(Context);
  return <div>{/* you can use your actions or store inside the html */}</div>
}

Publish your website!

  1. Vercel: The FREE recomended hosting provider is vercel.com, you can deploy in 1 minutes by typing the following 2 commands:

Login (you need to have an account):

$ npm i vercel -g && vercel login

Deploy:

$ vercel --prod

✎ Note: If you don't have an account just go to vercel.com, create a account and come back here.

Vercel example procedure to deploy

  1. Github Pages: This boilerplate is 100% compatible with the free github pages hosting. To publish your website you need to push your code to your github repository and run the following command after:
$ npm run deploy

Note: You will need to configure github pages for the branch gh-pages

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].