Skip to content

Commit

Permalink
Move dummy file into .dummy
Browse files Browse the repository at this point in the history
  • Loading branch information
yishn committed Jun 10, 2022
1 parent 5cbfe16 commit 2023a0e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
File renamed without changes.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ You can use `import_components!` together with `wasm-bindgen` to import JS
components for Rust consumption. First, prepare your JS component:

```js
// /js/myComponents.js
// /.dummy/myComponents.js
import "https://unpkg.com/react/umd/react.production.min.js";

export function MyComponent(props) {
Expand All @@ -154,7 +154,7 @@ use wasm_react::props::Props;
use wasm_bindgen::prelude::*;

import_components! {
#[wasm_bindgen(module = "/js/myComponents.js")]
#[wasm_bindgen(module = "/.dummy/myComponents.js")]

MyComponent
}
Expand Down
4 changes: 2 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ macro_rules! export_components {
///
/// # Example
///
/// Assume the JS components are defined and exported in `/js/myComponents.js`:
/// Assume the JS components are defined and exported in `/.dummy/myComponents.js`:
///
/// ```js
/// import "https://unpkg.com/react/umd/react.production.min.js";
Expand All @@ -312,7 +312,7 @@ macro_rules! export_components {
/// # use wasm_react::*;
/// # use wasm_bindgen::prelude::*;
/// import_components! {
/// #[wasm_bindgen(module = "/js/myComponents.js")]
/// #[wasm_bindgen(module = "/.dummy/myComponents.js")]
///
/// /// Some doc comment for the imported component.
/// MyComponent,
Expand Down

0 comments on commit 2023a0e

Please sign in to comment.