Skip to content

Example demo app implemented using react, reac4s, react-redux, react with typescript, react with flow

Notifications You must be signed in to change notification settings

Poorva17/react-redux-react4s-spike

Repository files navigation

This project is a example demo app implemented in react, reac4s, react-redux app

1. React implementation -

This project was bootstrapped with Create React App.

Below you will find some information on how to perform common tasks.
You can find the most recent version of this guide here.

Table of Contents

Folder Structure

Folder structure to consider for react implementation -

react-redux-react4s-spike/
  README.md
  react/
    node_modules/
    package.json
    public/
       index.html
       favicon.ico
    src/
      App.css
      App.js
      App.test.js
      index.css
      index.js
      logo.svg
      commentBox/
      notification/

For the project to build, these files must exist with exact filenames:

  • public/index.html is the page template;
  • src/index.js is the JavaScript entry point.

You can delete or rename the other files.

You may create subdirectories inside src. For faster rebuilds, only files inside src are processed by Webpack.
You need to put any JS and CSS files inside src, otherwise Webpack won’t see them.

Only files inside public can be used from public/index.html.
Read instructions below for using assets from JavaScript and HTML.

You can, however, create more top-level directories.
They will not be included in the production build so you can use them for things like documentation.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

2. Work for react4s -

This project is implemented using reference examples provided react4s-samples

Project Structure

Project structure to consider for react4s implementation

react-redux-react4s-spike/
  README.md
  project/
  target/
  src/
    main/
      scala/
          samples/
             commentListExample/
  build.sbt
  index.html
     etc 

Available sbt tasks

sbt test:compile

Compile project in test mode

sbt fastOptJS

Produce JavaScript file from your code. This will perform fast Scala.js-specific optimizations and write the resulting code to a single JavaScript file. This JavaScript file is used in index.html. Open index.html from browser and play with running commentBox example

3. Work for react-redux - in progress

About

Example demo app implemented using react, reac4s, react-redux, react with typescript, react with flow

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published