UNPKG
mfe-react
Version:
latest (1.1.0)
1.1.0
1.0.9
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
React Micro-Frontend Component Wrapper
github.com/matt-kruse/mfe-react
matt-kruse/mfe-react
mfe-react
/
example
/
mfe
/
src
/
ForwardRefComponent.js
10 lines
(7 loc)
•
257 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
React
from
'react'
;
const
MyForwardRefButton
=
React
.
forwardRef
(
(
props,ref
) =>
{
return
<
div
>
<
button
ref
=
{ref}
onClick
=
{props.onclick}
>
{props.msg || "Default Button"}
</
button
>
</
div
>
});
export
default
MyForwardRefButton
;