- Ensure you have docker installed and running
- Run
docker-compose build - Run
docker-compose run web yarn - Run
docker-compose up - Go to
http://localhost:3000. - Complete the challenges.
- Follow the instructions at the end.
Docs for the react rails gem are here: https://github.com/reactjs/react-rails
The components being referenced are in the app/javascript/components directory, and we can pass props to the react components as a hash.
E.g. react_component 'staticPages/Home', linkPath: challenge_1_path
Will look for a react component in the app/javascript/components/staticPages directory called Home.tsx and will pass it one prop called linkPath which we can then access in the React component itself