Skip to content

Repository files navigation

react-project-setups

Simple starter setups for

  • A React app w/ webpack
  • A React Redux app w/ webpack (using ducks component structure)
  • A React app using react-scripts
  • A React app using react-scripts with Axios externalAPI util

Notes

  • npm run start
  • npm i - to install dependencies
  • open index.html with live-server to open in local environment

Other Resources:

const path = require('path'); // node module for accessing file paths
module.exports = { entry: './src/index.js', // which module webpack should use to begin building out its internal dependency graph
output: {
path: path.resolve(__dirname, 'src'),
filename: 'bundle.js' },
module: {
rules: [
{
test: [/\.jsx?$/],
exclude: /(node_modules)/,
use: { loader: 'babel-loader', query: {
presets: ['@babel/env', '@babel/react']
}
}
}
]
},
resolve: {
extensions: ['.js', '.jsx', '*']
},
devtool: 'inline-source-map'
}

About

Simple react app starts (w/Webpack, react-scripts etc)

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages