-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update example app for Tech challenges (#4192)
Update examples/playbook-rails-react-example to work better with tech challenges.
- Loading branch information
Showing
3 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
<%# If choosing to use React components in Rails views, the following `react_component` helper is already set up. %> | ||
<%# Please use the components/App.tsx file to create your React components.%> | ||
<%= react_component("App") %> | ||
|
||
|
||
<%# If you want to use the Rails components only, you can use the following example: %> | ||
<%# Line 3 above can be deleted if choosing to use Rails components only. %> | ||
|
||
<%= pb_rails("button", props: { text: "Button Primary", margin_right: "lg" }) %> |