GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - renchap/webpacker-react-example: Example application using Webpacker-React

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
app
app
 
 
bin
bin
 
 
config
config
 
 
lib
lib
 
 
log
log
 
 
public
public
 
 
test
test
 
 
tmp
tmp
 
 
vendor
vendor
 
 
.gitignore
.gitignore
 
 
Gemfile
Gemfile
 
 
Gemfile.lock
Gemfile.lock
 
 
README.md
README.md
 
 
Rakefile
Rakefile
 
 
config.ru
config.ru
 
 

Repository files navigation

Webpacker-React sample application

This is a very basic Rails application to showcase usage of Webpacker-React.

Please read Webpacker-React documentation for more details.

Usage

First, clone this repository and install dependancies :

$ cd webpacker-react-example
$ bundle
$ ./bin/yarn

You then need to run Webpack to compile the javascript code :

$ ./bin/webpack

Now you can run the Rails app :

$ ./bin/rails server

Finally open http://localhost:3000/ in your browser.

Contents

Hello: Sample React component

Very basic React component, nothing special.

Hello React pack file

Packfiles are entrypoints for Webpacker's managed Javascript. For Webpacker-React to work, you need to import your component and register it for later use in your app.

React component rendered from a view

Use the react_component() method from a view to render a previously registered component.

React component rendered from a controller

You can also use render react_component: 'Component' from a controller to render it.

Development

You are encouraged to use this example application to test any development you make on the Webpacker-React code base. Please see its README for more details.

About

Example application using Webpacker-React

github.com/renchap/webpacker-react

Resources

Readme
Activity

Stars

11 stars

Watchers

3 watching

Forks

11 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.