René's URL Explorer Experiment


Title: Help requested on wrapping react component into angular · Issue #157 · microsoft/angular-react · GitHub

Open Graph Title: Help requested on wrapping react component into angular · Issue #157 · microsoft/angular-react

X Title: Help requested on wrapping react component into angular · Issue #157 · microsoft/angular-react

Description: Hi all, I'm trying to learn how to use the angular-react through the examples in the wiki. Not sure if this is the correct place to ask, please tell me otherwise. I've successfully achieved the use of already provided fab elements (fab-c...

Open Graph Description: Hi all, I'm trying to learn how to use the angular-react through the examples in the wiki. Not sure if this is the correct place to ask, please tell me otherwise. I've successfully achieved the use...

X Description: Hi all, I'm trying to learn how to use the angular-react through the examples in the wiki. Not sure if this is the correct place to ask, please tell me otherwise. I've successfully achieved...

Opengraph URL: https://github.com/microsoft/angular-react/issues/157

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Help requested on wrapping react component into angular","articleBody":"Hi all,\r\n\r\n   I'm trying to learn how to use the angular-react through the examples in the wiki. Not sure if this is the correct place to ask, please tell me otherwise.\r\n\r\n- I've successfully achieved the use of already provided  fab elements (fab-calendar, fab-dialog or fab-primary-button) and setting their properties successfully\r\n\r\n- I've successfully created a React JS library (packed and deployed) and used in React Applications \r\n\r\n> import React, { Component } from 'react'\r\n> import PropTypes from 'prop-types'\r\n> \r\n> import styles from './styles.css'\r\n> \r\n> export default class ExampleComponent extends Component {\r\n>   constructor(props) {\r\n>     super(props);\r\n>   }\r\n> \r\n>   static propTypes = {\r\n>     name: PropTypes.string\r\n>   }\r\n> \r\n>   render() {\r\n> \r\n>     return (\r\n>       \u003cdiv className={styles.test}>\r\n>         Hello {this.props.name} {this.props.lastname}\r\n>       \u003c/div>\r\n>     )\r\n>   }\r\n> }\r\n> \r\n\r\n- But I'm stuck on creating the wrapper library as described in [Authoring wiki page](https://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring)\r\n\r\nModule specification is quite straightforward, but I'm stuck with component definition. I've tried looking at how it was made for Fabric e.g. Dialog => [React](https://github.com/microsoft/fluentui/blob/master/packages/office-ui-fabric-react/src/components/Dialog/Dialog.base.tsx) and [Component Wrapper](https://github.com/microsoft/angular-react/blob/master/libs/fabric/src/lib/components/dialog/dialog.component.ts) but these are bit complex to follow.\r\n\r\nOne of the requirements of ReactWrapperComponent is to place a \u003cTProps extends {}> which for Fabric element is made through Typescript Interface definitions e.g. export class FabDialogComponent extends ReactWrapperComponent\u003cIDialogProps>, but as I'm using React in JS and not Typescript, It's not clear to me, what to put in ReactWrapperComponent\u003c> and how to access my react Props (i.e. name & lastname).\r\n\r\n- Is it necessary to work with React Typescript or is it possible to wrap libraries in React JS?\r\n- What is the goal of renderCount && onRenderCount in the [Authoring wiki](https://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring)?\r\n- Following  [Fabric Component Wrapper](https://github.com/microsoft/angular-react/blob/master/libs/fabric/src/lib/components/dialog/dialog.component.ts) example I miss (onIncrement)=\"onIncrementHandler($event)\" or similar in the template, am I missing something?\r\n- Could you provide or is it accessible the 'my-react-ui-library' used in [Authoring wiki](https://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring)?\r\n- Could somebody provide a corresponding wrapper code for the simple example (ExampleComponent) provided above?\r\n\r\nThanks in advance and sorry for the dumminess,\r\n\r\nGorka","author":{"url":"https://github.com/epetxepe","@type":"Person","name":"epetxepe"},"datePublished":"2020-03-24T16:39:13Z","url":"https://github.com/microsoft/angular-react/issues/157"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:9f9800e0-5f69-534e-ca6e-b3298695de64
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9670:36A3E:A6F789:E0952E:6B00EFFC
html-safe-noncee4e7c7631c2db7b40d467c80d8d2128fba5dc50b2f653445e005c641af882d75
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjcwOjM2QTNFOkE2Rjc4OTpFMDk1MkU6NkIwMEVGRkMiLCJ2aXNpdG9yX2lkIjoiNzQ0NTQyMTQzMTU0MDI0NDQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac33649579d50ca142bdef20fe7639aa059905585bb15fce10102191dcaa1e270e
hovercard-subject-tagissue:587104245
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/angular-react/157/issue_layout
twitter:imagehttps://opengraph.githubassets.com/3adea2282780bafbb141ab759a8cf2956ed1fb8a48c9e2662a4efe859cf82c62/microsoft/angular-react/issues/157
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3adea2282780bafbb141ab759a8cf2956ed1fb8a48c9e2662a4efe859cf82c62/microsoft/angular-react/issues/157
og:image:altHi all, I'm trying to learn how to use the angular-react through the examples in the wiki. Not sure if this is the correct place to ask, please tell me otherwise. I've successfully achieved the use...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameepetxepe
hostnamegithub.com
expected-hostnamegithub.com
None4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc
turbo-cache-controlno-preview
go-importgithub.com/microsoft/angular-react git https://github.com/microsoft/angular-react.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id144321557
octolytics-dimension-repository_nwomicrosoft/angular-react
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id144321557
octolytics-dimension-repository_network_root_nwomicrosoft/angular-react
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9983dd5da06943f833c971dd5b6bc988e2858be5
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/angular-react/issues/157#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fangular-react%2Fissues%2F157
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fangular-react%2Fissues%2F157
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fangular-react
Reloadhttps://github.com/microsoft/angular-react/issues/157
Reloadhttps://github.com/microsoft/angular-react/issues/157
Reloadhttps://github.com/microsoft/angular-react/issues/157
microsofthttps://github.com/microsoft
angular-reacthttps://github.com/microsoft/angular-react
Codehttps://github.com/microsoft/angular-react
Issues25 (25)https://github.com/microsoft/angular-react/issues
Pull requests30 (30)https://github.com/microsoft/angular-react/pulls
Actionshttps://github.com/microsoft/angular-react/actions
Projectshttps://github.com/microsoft/angular-react/projects
Wikihttps://github.com/microsoft/angular-react/wiki
Security and qualityhttps://github.com/microsoft/angular-react/security
Insightshttps://github.com/microsoft/angular-react/insights
https://github.com/microsoft/angular-react
Help requested on wrapping react component into angularhttps://github.com/microsoft/angular-react/issues/157#top
https://github.com/epetxepe
Gorka Epelde (epetxepe)https://github.com/epetxepe
on Mar 24, 2020https://github.com/microsoft/angular-react/issues/157#issue-587104245
Authoring wiki pagehttps://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring
Reacthttps://github.com/microsoft/fluentui/blob/master/packages/office-ui-fabric-react/src/components/Dialog/Dialog.base.tsx
Component Wrapperhttps://github.com/microsoft/angular-react/blob/master/libs/fabric/src/lib/components/dialog/dialog.component.ts
Authoring wikihttps://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring
Fabric Component Wrapperhttps://github.com/microsoft/angular-react/blob/master/libs/fabric/src/lib/components/dialog/dialog.component.ts
Authoring wikihttps://github.com/microsoft/angular-react/wiki/Wrapper-libraries%3A-Authoring
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/angular-react/issues/157
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/angular-react/issues/157
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.