Skip to content

Commit ec11892

Browse files
committed
More updates
1 parent 19a226f commit ec11892

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/contributor-info/pull-requests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ From [How to Write a Git Commit Message](http://chris.beams.io/posts/git-commit/
3535

3636
When making doc changes, we want the change to work on both the gitbook and the regular github site. The issue is that non-doc files will not go to the gitbook site, so doc references to non doc files must use the github URL.
3737

38-
### Links to other docs:
38+
### Links to other docs
3939

4040
- When making references to source code files, use a full GitHub URL, for example:
4141
`[spec/dummy/config/initializers/react_on_rails.rb](https://github.com/shakacode/react_on_rails/tree/master/spec/dummy/config/initializers/react_on_rails.rb)`

docs/guides/tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ By the time you read this, the latest may have changed. Be sure to check the ver
2222
- [https://rubygems.org/gems/react_on_rails](https://rubygems.org/gems/react_on_rails)
2323
- [https://www.npmjs.com/package/react-on-rails](https://www.npmjs.com/package/react-on-rails)
2424

25-
# Table of Content:
25+
# Table of Content
2626

2727
- [Installation](#installation)
2828
- [Setting up your environment](#setting-up-your-environment)
@@ -170,7 +170,7 @@ heroku buildpacks:set heroku/ruby
170170
heroku buildpacks:add --index 1 heroku/nodejs
171171
```
172172

173-
## Swap out sqlite for postgres:
173+
## Swap out sqlite for postgres
174174

175175
Heroku requires your app to use Postgresql. If you have not set up your app
176176
with Postgresql, you need to change your app settings to use this database.

docs/guides/upgrading-react-on-rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ Reason for doing this: This enables your Webpack bundles to bypass the Rails ass
274274
- `config/webpacker.yml`: start with our [example config](https://github.com/shakacode/react-webpack-rails-tutorial/blob/master/config/webpacker.yml) (feel free to modify it as needed). I recommend setting dev_server.hmr to false however since HMR is currently broken.
275275
- `client/package.json`: bump `react_on_rails` (I recommend bumping `webpack` as well). You'll also need `js-yaml` if you're not already using `eslint` and `webpack-manifest-plugin` regardless.
276276

277-
###### Client Webpack config:
277+
###### Client Webpack config
278278

279279
- You'll need the following code to read data from the webpacker config:
280280

docs/javascript/render-functions.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ The `react_component` helper renders a single React component in your view.
143143
144144
This helper accepts render-functions that return React components, objects with a `renderedHtml` property, or promises that resolve to React components, or strings.
145145
146-
#### When to use:
146+
#### When to use
147147
148148
- When you need to render a single component
149149
- When you're rendering client-side only
150150
- When your render function returns a single HTML string
151151
152-
#### Not suitable for:
152+
#### Not suitable for
153153
154154
- When your render function returns an object with multiple HTML strings
155155
- When you need to insert content in different parts of the page, such as meta tags & style tags
@@ -177,19 +177,19 @@ The `react_component_hash` helper is used when your render function returns an o
177177

178178
This helper accepts render-functions that return objects with a `renderedHtml` property containing `componentHtml` and any other necessary properties. It also supports promises that resolve to a server-side hash.
179179

180-
#### When to use:
180+
#### When to use
181181

182182
- When your render function returns multiple HTML strings in an object
183183
- When you need to insert rendered content in different parts of your page
184184
- For SEO-related rendering like meta tags and title tags
185185
- When working with libraries like React Helmet
186186

187-
#### Not suitable for:
187+
#### Not suitable for
188188

189189
- Simple component rendering
190190
- Client-side only rendering (always uses server rendering)
191191

192-
#### Requirements:
192+
#### Requirements
193193

194194
- The render function MUST return an object
195195
- The object MUST include a `componentHtml` key

docs/outdated/rails-assets-relative-paths.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ If you've read this far, you probably have a grip on everything. If you didn't,
123123
- Add assets directory in `client/app/`, and place whatever you would like in there
124124
- Import or Require these files in your JSX and use them all you want!
125125

126-
### Here's a full example of a webpack.config.js configured with file-loader to load images:
126+
### Here's a full example of a webpack.config.js configured with file-loader to load images
127127

128128
```javascript
129129
const webpack = require('webpack');

0 commit comments

Comments
 (0)